/** Transitional styles for shortcode components owned by TMR plugins. */

/* Action buttons deliberately remain separate from the global button style. */
.tmr-pdp-buttons {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	max-width: 100%;
	width: auto !important;
	height: auto !important;
	min-height: 2.5rem !important;
	padding: 0.6rem 1rem !important;
	border: 1px solid var(--wp--preset--color--navy);
	border-radius: 6px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 0.9375rem !important;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}

.tmr-pdp-buttons:hover {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.tmr-pdp-buttons:disabled,
.tmr-pdp-buttons[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Optional local modifier for a deliberately prominent Look Inside control. */
.tmr-pdp-buttons--featured {
	border-color: var(--wp--preset--color--gold);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
}

/* Look Inside is a featured local action, not a global button treatment. */
.look-inside-wrapper #look-inside-button {
	width: min(100%, 20rem) !important;
	min-height: 3rem !important;
	border-color: var(--wp--preset--color--gold);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
	font-size: 1rem !important;
}

.look-inside-wrapper #look-inside-button:hover {
	border-color: var(--tmr-gold-hover);
	background: var(--tmr-gold-hover);
	color: var(--wp--preset--color--navy);
}

.button-container,
.terms-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-block-start: 1rem;
}

.tmr-center-container {
	display: flex;
	justify-content: center;
}

/* Universal modal emitted by tmr-general-admin. */
#tmr-uni-modal.tmr-uni-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	padding: var(--tmr-gutter);
	background: rgb(0 0 0 / 65%);
}

#tmr-uni-modal.tmr-uni-overlay.open {
	display: grid;
	place-items: center;
}

#tmr-uni-modal .tmr-uni-box {
	display: flex;
	flex-direction: column;
	width: min(64rem, calc(100vw - (2 * var(--tmr-gutter))));
	max-width: none;
	max-height: min(90dvh, 56rem);
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	box-shadow: var(--tmr-shadow-raised);
}

#tmr-uni-modal .tmr-uni-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--wp--preset--color--gold);
	background: var(--wp--preset--color--navy);
}

#tmr-uni-modal .tmr-uni-title {
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 1.125rem;
	font-weight: 700;
}

#tmr-uni-modal .tmr-uni-close {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--white);
	font-size: 1.75rem;
	cursor: pointer;
}

#tmr-uni-modal .tmr-uni-close:hover {
	color: var(--wp--preset--color--gold);
}

#tmr-uni-modal .tmr-uni-content {
	overflow: auto;
	padding: clamp(1rem, 3vw, 1.5rem);
	background: var(--wp--preset--color--offwhite);
	color: var(--wp--preset--color--textgrey);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	line-height: 1.6;
	overscroll-behavior: contain;
}

#tmr-uni-modal .tmr-uni-content :where(p, li, td, th, span, strong) {
	color: inherit;
}

#tmr-uni-modal .tmr-uni-content :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--navy);
}

#tmr-uni-modal .tmr-uni-content a {
	color: var(--wp--preset--color--blue);
	text-decoration: underline;
}

/* Directory columns are based on available width, not arbitrary breakpoints. */
.tmr-directory,
#brand-list,
#composer-list {
	width: min(100%, var(--wp--style--global--content-size));
	margin-inline: auto;
}

.tmr-directory__list,
.brand-columns,
.composer-columns,
.brand-publication-columns {
	columns: 15rem auto;
	column-gap: clamp(1.5rem, 4vw, 3rem);
}

.brand-column,
.composer-column,
.brand-publication-column {
	width: auto;
	min-width: 0;
	max-width: none;
}

.tmr-pagination,
.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	margin-block: 1.5rem;
}

.tmr-pagination .page-numbers,
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0.3rem 0.55rem;
	border: 1px solid var(--wp--preset--color--bordergrey);
	border-radius: 4px;
	background: var(--wp--preset--color--white);
}

.tmr-pagination .current,
.pagination .current {
	border-color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.more-content { display: none; }
.show-more {
	display: inline-flex;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--wp--preset--color--navy);
	border-radius: 5px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
	cursor: pointer;
}

.tmr-payment-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.tmr-payment-icons img {
	display: block;
	width: auto;
	height: 1.75rem;
	margin: 0;
}

.dgwt-wcas-search-form .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit {
	width: auto;
	min-width: 3rem;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
}

.tmr-search-group .dgwt-wcas-voice-search svg { position: static; }

/* The homepage search is the primary catalogue-discovery control. */
.home main .wp-block-fibosearch-search {
	position: relative;
	left: 50%;
	width: min(42rem, calc(100vw - (2 * var(--tmr-gutter)))) !important;
	max-width: none !important;
	margin-inline: 0;
	transform: translateX(-50%);
}

.home main .wp-block-fibosearch-search .dgwt-wcas-search-wrapp {
	width: 100% !important;
	max-width: none !important;
}

.home main .dgwt-wcas-search-input {
	min-height: 3.5rem !important;
	padding-inline-start: 1rem !important;
	font-size: 1rem !important;
}

.home main .dgwt-wcas-search-submit {
	width: 3.75rem !important;
	min-width: 3.75rem !important;
	background: var(--wp--preset--color--gold) !important;
	color: var(--wp--preset--color--navy) !important;
}

.dgwt-wcas-suggestions-wrapp {
	max-height: min(70dvh, 34rem) !important;
	overflow-y: auto !important;
}

.dgwt-wcas-suggestion {
	font-size: 0.9375rem;
	line-height: 1.35;
}
