/* Wedly Core - front-end styles */

.wedly-upgrade-notice {
	padding: 16px 20px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #f9f9f9;
	text-align: center;
}

.wedly-favorite-button {
	cursor: pointer;
}

.wedly-favorite-button.is-favorited {
	font-weight: 600;
}

.wedly-favorite-button:disabled {
	opacity: 0.6;
	cursor: default;
}

.wedly-favorites-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wedly-favorites-list__item {
	margin-bottom: 8px;
}

.wedly-thread-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wedly-thread-list__item {
	padding: 10px 0;
	border-bottom: 1px solid #e0e0e0;
}

.wedly-thread-list__item a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	text-decoration: none;
}

.wedly-thread-list__updated {
	color: #666;
	font-size: 0.9em;
}

.wedly-conversation__back {
	margin-bottom: 12px;
}

.wedly-conversation__messages {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
	max-height: 400px;
	overflow-y: auto;
}

.wedly-message {
	max-width: 75%;
	padding: 8px 12px;
	border-radius: 8px;
	background: #f0f0f1;
	align-self: flex-start;
}

.wedly-message--own {
	align-self: flex-end;
	background: #d6e9ff;
}

.wedly-message__meta {
	font-size: 0.8em;
	color: #666;
	margin-bottom: 4px;
}

.wedly-message__body {
	white-space: pre-wrap;
}

.wedly-conversation__reply-form textarea {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 8px;
}

.wedly-save-feedback {
	display: inline-block;
	margin-left: 8px;
	font-size: 0.85em;
	font-style: italic;
	color: #666;
}

.wedly-save-feedback.is-error {
	color: #d63638;
	font-style: normal;
	font-weight: 600;
}

.wedly-review-meta {
	margin-bottom: 4px;
}

.wedly-review-title {
	margin-right: 8px;
}

.wedly-review-event-date {
	color: #666;
	font-size: 0.9em;
}

.wedly-vendor-review {
	padding: 12px 0;
	border-bottom: 1px solid #e0e0e0;
}

.wedly-vendor-review__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.wedly-vendor-review__author,
.wedly-vendor-review__date {
	color: #666;
	font-size: 0.9em;
}

.wedly-vendor-review__status {
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #fff;
}

.wedly-vendor-review__status--pending-vendor {
	background: #dba617;
}

.wedly-vendor-review__status--hidden-admin {
	background: #949494;
}

.wedly-vendor-review__status--live {
	background: #00a32a;
}

.wedly-vendor-review__body {
	margin-bottom: 8px;
}

.wedly-vendor-review__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wedly-vendor-profile-form {
	max-width: 700px;
}

.wedly-vendor-profile-form input[type="text"],
.wedly-vendor-profile-form input[type="email"],
.wedly-vendor-profile-form input[type="url"],
.wedly-vendor-profile-form input[type="number"],
.wedly-vendor-profile-form textarea {
	width: 100%;
	box-sizing: border-box;
}

.wedly-social-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.wedly-social-row input[type="text"],
.wedly-social-row input[type="url"] {
	flex: 1 1 auto;
}

.wedly-package-row {
	max-width: 600px;
	padding: 12px;
	margin-bottom: 12px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.wedly-package-features {
	margin-bottom: 8px;
}

.wedly-feature-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.wedly-feature-row input[type="text"] {
	flex: 1 1 auto;
}

.wedly-term-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-bottom: 16px;
}

.wedly-term-checkbox {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: normal;
}

#wedly-gallery-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.wedly-gallery-tile {
	position: relative;
	width: 110px;
}

.wedly-gallery-add-tile {
	position: relative;
	width: 110px;
	height: 110px;
}

.wedly-gallery-tile img {
	display: block;
	width: 100%;
	height: 110px;
	object-fit: cover;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.wedly-gallery-featured-badge {
	display: none;
	position: absolute;
	top: 4px;
	left: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f0b849;
	color: #4a3800;
	font-size: 0.7em;
	font-weight: 600;
}

.wedly-gallery-tile.is-featured .wedly-gallery-featured-badge {
	display: block;
}

.wedly-gallery-set-featured {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 2px 0;
	border: none;
	background: none;
	color: #2271b1;
	font-size: 0.75em;
	text-align: center;
	cursor: pointer;
}

.wedly-gallery-set-featured:hover,
.wedly-gallery-set-featured:focus {
	text-decoration: underline;
}

.wedly-gallery-tile.is-featured .wedly-gallery-set-featured {
	display: none;
}

.wedly-gallery-delete,
.wedly-gallery-delete:hover,
.wedly-gallery-delete:focus,
.wedly-gallery-delete:active {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 24px;
	height: 24px;
	line-height: 22px;
	padding: 0;
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	font-size: 15px;
}

.wedly-gallery-add-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px dashed #c3c4c7;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	font-size: 0.85em;
	color: #555;
}

.wedly-gallery-add-tile:hover {
	border-color: #999;
}

/* Step 17 - Beaver Themer Singular/Archive display */

.wedly-vendor-featured-photo {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
}

/* Hard-cropped banner height on desktop, but only for the default stock
   photo (wedly-vendor-featured-photo--stock) - it's a wide/short, mostly
   blank source image that stretches tall and looks like an empty page at
   height:auto. A real vendor photo already looks right at its own aspect
   ratio, so it keeps the proportional height above unchanged. */
@media ( min-width: 601px ) {
	.wedly-vendor-featured-photo--stock {
		height: 300px;
	}
}

.wedly-vendor-hero {
	position: relative;
	margin-bottom: 100px;
}

.wedly-vendor-hero .wedly-vendor-featured-photo {
	margin-bottom: 0;
}

.wedly-vendor-hero__avatar {
	position: absolute;
	left: 24px;
	bottom: -75px;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 4px solid #fff;
	background: #fff;
	object-fit: cover;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.15 );
}

@media ( max-width: 600px ) {
	.wedly-vendor-hero {
		margin-bottom: 0;
	}

	.wedly-vendor-hero__avatar {
		left: 16px;
		bottom: -52px;
		width: 70px;
		height: 70px;
		border-width: 3px;
	}
}

.wedly-badge-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0;
}

.wedly-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f0f0f1;
	color: #3c434a;
	font-size: 0.8em;
	font-weight: 600;
}

.wedly-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0;
}

.wedly-social-link {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	color: #3c434a;
	font-size: 0.8em;
	font-weight: 600;
	text-decoration: none;
}

.wedly-social-link:hover,
.wedly-social-link:focus {
	border-color: #3c434a;
	color: #000;
}

.wedly-packages-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: 16px;
	margin: 16px 0;
}

.wedly-package-card {
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.08 );
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wedly-package-card:hover {
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.12 );
	transform: translateY( -2px );
}

.wedly-package-card__title {
	margin: 0 0 8px;
}

.wedly-package-card__description {
	margin: 0 0 10px;
	color: #555;
}

.wedly-package-card__features {
	margin: 0;
	padding-left: 20px;
}

.wedly-gallery-display-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 140px, 1fr ) );
	gap: 10px;
	margin: 16px 0;
}

.wedly-gallery-display-item img {
	display: block;
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 6px;
}

.wedly-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 16px 0;
}

.wedly-review-card {
	padding: 16px 18px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
}

.wedly-review-card__meta {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 4px;
}

.wedly-review-card__date {
	color: #777;
	font-size: 0.85em;
}

.wedly-review-card__title {
	margin: 0 0 6px;
}

.wedly-paperwork-notice {
	margin: 16px 0;
	padding: 14px 18px;
	border: 1px solid #f0b849;
	border-radius: 6px;
	background: #fff8e5;
	color: #6b5200;
}

.wedly-message-vendor-button {
	display: inline-block;
	margin: 8px 0;
}

.wedly-back-to-all-vendors {
	margin: 0 0 20px;
	font-weight: 600;
}

.wedly-vendor-filter .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 1px, 1px, 1px, 1px );
	white-space: nowrap;
}

.wedly-vendor-filter {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

.wedly-vendor-filter-sidebar {
	flex: 0 0 220px;
}

.wedly-vendor-filter-results {
	flex: 1;
	min-width: 0;
}

.wedly-vendor-filter-bar {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wedly-vendor-filter-button {
	padding: 8px 12px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #3c434a;
	font-size: 0.95em;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.wedly-vendor-filter-button:hover {
	background: #f0f0f1;
}

.wedly-vendor-filter-button.is-active {
	background: #3c434a;
	color: #fff;
}

.wedly-vendor-filter-select {
	display: none;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	font-size: 1em;
}

.wedly-vendor-filter-results.is-loading {
	opacity: 0.5;
}

@media ( max-width: 768px ) {
	.wedly-vendor-filter {
		flex-direction: column;
		gap: 20px;
	}

	.wedly-vendor-filter-sidebar {
		flex: 1 1 auto;
		width: 100%;
	}

	.wedly-vendor-filter-bar {
		display: none;
	}

	.wedly-vendor-filter-select {
		display: block;
	}
}

.wedly-vendor-grid {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 20px;
	margin: 16px 0;
}

/* Beaver Builder's default breakpoints: Medium (tablet) 992px, Small (mobile) 768px. */
@media ( max-width: 992px ) {
	.wedly-vendor-grid {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 768px ) {
	.wedly-vendor-grid {
		grid-template-columns: repeat( 1, minmax( 0, 1fr ) );
	}
}

/* The general "all vendors" grid sits next to the filter sidebar, so it
   gets one fewer column than the full-width category archive grid at
   the same breakpoints. */
.wedly-vendor-filter-results .wedly-vendor-grid {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}

@media ( max-width: 992px ) {
	.wedly-vendor-filter-results .wedly-vendor-grid {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 768px ) {
	.wedly-vendor-filter-results .wedly-vendor-grid {
		grid-template-columns: repeat( 1, minmax( 0, 1fr ) );
	}
}

.wedly-vendor-card {
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.08 );
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wedly-vendor-card:hover {
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.12 );
	transform: translateY( -2px );
}

.wedly-vendor-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.wedly-vendor-card__photo {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 10px;
}

.wedly-vendor-card__name {
	margin: 0 0 6px;
}
