/**
 * SMTBOX RFQ & Quote Cart Component Styles
 * File: css/components/rfq-cart.css
 * Clean cascade, Zero important declarations
 */

html body .product-summary .catalog-product-text,
html body div.catalog-product-text.pb.relative,
.product-summary .catalog-product-text,
div.catalog-product-text.pb.relative {
    display: inline-block;
    vertical-align: middle;
    padding: 0;
    margin: 0;
    height: auto;
}

html body .sre-quote-btn:not(.is-single-page),
html body .smtbox-quote-btn:not(.is-single-page),
html body button.sre-quote-btn:not(.is-single-page),
html body button.smtbox-quote-btn:not(.is-single-page),
html body a.sre-quote-btn:not(.is-single-page),
html body a.smtbox-quote-btn:not(.is-single-page),
html body .sre-quote-loop-btn-wrapper .sre-add-to-quote-btn,
html body .smtbox-quote-loop-btn-wrapper .smtbox-add-to-quote-btn,
html body .sre-quote-loop-btn-wrapper .smtbox-add-to-quote-btn,
html body .smtbox-quote-loop-btn-wrapper .sre-add-to-quote-btn,
.sre-quote-loop-btn-wrapper .sre-add-to-quote-btn,
.smtbox-quote-loop-btn-wrapper .smtbox-add-to-quote-btn,
.sre-quote-loop-btn-wrapper .smtbox-add-to-quote-btn,
.smtbox-quote-loop-btn-wrapper .sre-add-to-quote-btn,
.sre-quote-btn:not(.is-single-page),
.smtbox-quote-btn:not(.is-single-page) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--smt-color-primary, #002780);
    color: var(--smt-color-white, #ffffff);
    border: 1.5px solid var(--smt-color-primary, #002780);
    border-radius: var(--smt-radius-sm, 4px);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11.5px;
    padding: 0 8px 2px 8px;
    text-align: center;
    cursor: pointer;
    transition: all var(--smt-transition-fast, 0.2s ease-in-out);
    box-shadow: none;
    line-height: 1;
    width: 100%;
    height: 34px;
    font-family: var(--smt-font-brand, "Outfit", "Inter", sans-serif);
    text-decoration: none;
    box-sizing: border-box;
}

html body .sre-quote-btn:not(.is-single-page):hover,
html body .smtbox-quote-btn:not(.is-single-page):hover,
html body button.sre-quote-btn:not(.is-single-page):hover,
html body button.smtbox-quote-btn:not(.is-single-page):hover,
html body a.sre-quote-btn:not(.is-single-page):hover,
html body a.smtbox-quote-btn:not(.is-single-page):hover,
html body .sre-quote-loop-btn-wrapper .sre-add-to-quote-btn:hover,
html body .smtbox-quote-loop-btn-wrapper .smtbox-add-to-quote-btn:hover,
html body .sre-quote-loop-btn-wrapper .smtbox-add-to-quote-btn:hover,
html body .smtbox-quote-loop-btn-wrapper .sre-add-to-quote-btn:hover,
.sre-quote-loop-btn-wrapper .sre-add-to-quote-btn:hover,
.smtbox-quote-loop-btn-wrapper .smtbox-add-to-quote-btn:hover,
.sre-quote-loop-btn-wrapper .smtbox-add-to-quote-btn:hover,
.smtbox-quote-loop-btn-wrapper .sre-add-to-quote-btn:hover,
.sre-quote-btn:not(.is-single-page):hover,
.smtbox-quote-btn:not(.is-single-page):hover {
    background-color: var(--smt-color-accent, #CF0921);
    border-color: var(--smt-color-accent, #CF0921);
    color: var(--smt-color-white, #ffffff);
    box-shadow: 0 4px 10px rgba(207, 9, 33, 0.3);
}

/* Single Product Summary RFQ Button - BEM Standardized (Stan verified) */
.smt-c-product-summary__btn--quote {
    width: auto;
    min-width: 180px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--smt-color-white, #ffffff);
    color: var(--smt-color-primary, #002780);
    border: 1.5px solid var(--smt-color-primary, #002780);
    border-radius: var(--smt-radius-sm, 4px);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--smt-font-brand, "Outfit", "Inter", sans-serif);
    padding: 10px 24px;
    margin-left: 10px;
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: middle;
    cursor: pointer;
    transition: all var(--smt-transition-fast, 0.2s ease-in-out);
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: none;
    line-height: 1.2;
}

.smt-c-product-summary__btn--quote:hover {
    background-color: var(--smt-color-primary, #002780);
    border-color: var(--smt-color-primary, #002780);
    color: var(--smt-color-white, #ffffff);
    box-shadow: 0 4px 8px rgba(0, 39, 128, 0.15);
}

html body .product-summary button.button.alt.sre-quote-btn.is-single-page,
html body .product-summary button.button.alt.smtbox-quote-btn.is-single-page,
html body .product-summary .button.alt.sre-quote-btn.is-single-page,
html body .product-summary .button.alt.smtbox-quote-btn.is-single-page,
html body button.button.alt.sre-quote-btn.is-single-page,
html body button.button.alt.smtbox-quote-btn.is-single-page,
html body button.sre-quote-btn.is-single-page,
html body button.smtbox-quote-btn.is-single-page,
html body .button.alt.sre-quote-btn.is-single-page,
html body .button.alt.smtbox-quote-btn.is-single-page,
html body .sre-quote-btn.is-single-page,
html body .smtbox-quote-btn.is-single-page,
.button.alt.sre-quote-btn.is-single-page,
.button.alt.smtbox-quote-btn.is-single-page,
.sre-quote-btn.is-single-page,
.smtbox-quote-btn.is-single-page {
    width: auto;
    min-width: 180px;
    font-size: 13px;
    padding: 10px 24px;
    margin-left: 10px;
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: middle;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--smt-color-white, #ffffff);
    color: var(--smt-color-primary, #002780);
    border: 1.5px solid var(--smt-color-primary, #002780);
    border-radius: var(--smt-radius-sm, 4px);
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--smt-font-brand, "Outfit", "Inter", sans-serif);
    transition: all var(--smt-transition-fast, 0.2s ease-in-out);
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: none;
}

html body .product-summary button.button.alt.sre-quote-btn.is-single-page:hover,
html body .product-summary button.button.alt.smtbox-quote-btn.is-single-page:hover,
html body .product-summary .button.alt.sre-quote-btn.is-single-page:hover,
html body .product-summary .button.alt.smtbox-quote-btn.is-single-page:hover,
html body button.button.alt.sre-quote-btn.is-single-page:hover,
html body button.button.alt.smtbox-quote-btn.is-single-page:hover,
html body button.sre-quote-btn.is-single-page:hover,
html body button.smtbox-quote-btn.is-single-page:hover,
html body .button.alt.sre-quote-btn.is-single-page:hover,
html body .button.alt.smtbox-quote-btn.is-single-page:hover,
html body .sre-quote-btn.is-single-page:hover,
html body .smtbox-quote-btn.is-single-page:hover,
.button.alt.sre-quote-btn.is-single-page:hover,
.button.alt.smtbox-quote-btn.is-single-page:hover,
.sre-quote-btn.is-single-page:hover,
.smtbox-quote-btn.is-single-page:hover {
    background-color: var(--smt-color-primary, #002780);
    border-color: var(--smt-color-primary, #002780);
    color: var(--smt-color-white, #ffffff);
    box-shadow: 0 4px 8px rgba(0, 39, 128, 0.15);
}

html body #probutton,
html body div#probutton,
html body #wrapper #probutton,
#probutton {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    height: auto;
}

html body #probutton a.thickbox,
html body div#probutton a.thickbox,
html body #wrapper #probutton a.thickbox,
#probutton a.thickbox,
#probutton a {
    background: var(--smt-color-primary, #002780);
    background-color: var(--smt-color-primary, #002780);
    background-image: none;
    color: var(--smt-color-white, #ffffff);
    margin: 0;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--smt-radius-sm, 4px);
    border: 1.5px solid var(--smt-color-primary, #002780);
    padding: 10px 24px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    float: none;
    text-shadow: none;
    box-shadow: none;
    transition: all var(--smt-transition-fast, 0.2s ease-in-out);
    text-decoration: none;
    box-sizing: border-box;
    font-family: var(--smt-font-brand, "Outfit", "Inter", sans-serif);
}

html body #probutton a.thickbox:hover,
html body div#probutton a.thickbox:hover,
html body #wrapper #probutton a.thickbox:hover,
#probutton a.thickbox:hover,
#probutton a:hover {
    background: var(--smt-color-accent, #CF0921);
    background-color: var(--smt-color-accent, #CF0921);
    border-color: var(--smt-color-accent, #CF0921);
    color: var(--smt-color-white, #ffffff);
    box-shadow: 0 4px 8px rgba(207, 9, 33, 0.2);
}

/* Floating RFQ Badge */
.sre-rfq-badge,
.smtbox-rfq-badge {
    position: fixed;
    bottom: 145px;
    right: 20px;
    background-color: var(--smt-color-primary, #002780);
    color: var(--smt-color-white, #ffffff);
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 39, 128, 0.35);
    z-index: var(--smt-z-modal, 9999);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sre-rfq-badge:hover,
.smtbox-rfq-badge:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 39, 128, 0.45);
    background-color: var(--smt-color-accent, #cf0921);
}

.sre-rfq-badge.pulse,
.smtbox-rfq-badge.pulse {
    animation: sre-badge-pulse 0.5s ease-out;
}

@keyframes sre-badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

@keyframes smtbox-badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Google reCAPTCHA v3 badge positioning */
html body .grecaptcha-badge,
div.grecaptcha-badge,
.grecaptcha-badge {
    visibility: hidden;
    opacity: 0;
    left: 0;
    right: auto;
    bottom: 140px;
    transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 99;
}

html body .grecaptcha-badge.grecaptcha-show,
div.grecaptcha-badge.grecaptcha-show,
.grecaptcha-badge.grecaptcha-show {
    visibility: visible;
    opacity: 1;
}

/* Shift Google reCAPTCHA badge up when cookie consent banner is active */
html body #sre-cookie-consent:not([style*="display: none"]):not([style*="display:none"]) ~ .grecaptcha-badge,
html body #smtbox-cookie-consent:not([style*="display: none"]):not([style*="display:none"]) ~ .grecaptcha-badge,
html body #sre-cookie-consent:not([style*="display: none"]):not([style*="display:none"]) ~ div .grecaptcha-badge,
html body #smtbox-cookie-consent:not([style*="display: none"]):not([style*="display:none"]) ~ div .grecaptcha-badge,
#sre-cookie-consent:not([style*="display: none"]):not([style*="display:none"]) ~ .grecaptcha-badge,
#smtbox-cookie-consent:not([style*="display: none"]):not([style*="display:none"]) ~ .grecaptcha-badge,
#sre-cookie-consent:not([style*="display: none"]):not([style*="display:none"]) ~ div .grecaptcha-badge,
#smtbox-cookie-consent:not([style*="display: none"]):not([style*="display:none"]) ~ div .grecaptcha-badge {
    bottom: 185px;
}

/* Toast Notifications */
.sre-toast,
.smtbox-toast {
    position: fixed;
    bottom: 160px;
    right: 25px;
    background-color: #10b981;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.sre-toast.show,
.smtbox-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Empty Cart Page Component */
.sre-empty-cart-svg,
.smtbox-empty-cart-svg {
    width: 80px;
    height: 80px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    margin: 0 auto;
    display: block;
}

.sre-empty-cart-cat-grid,
.smtbox-empty-cart-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.sre-empty-cart-cat-item,
.smtbox-empty-cart-cat-item {
    transition: all var(--smt-transition-fast, 0.2s ease);
}

.sre-empty-cart-cat-item:hover,
.smtbox-empty-cart-cat-item:hover {
    border-color: var(--smt-color-primary, #002780);
    box-shadow: 0 2px 4px rgba(0, 39, 128, 0.08);
}

.sre-empty-cart-rec-grid,
.smtbox-empty-cart-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.sre-empty-cart-rec-card,
.smtbox-empty-cart-rec-card {
    transition: all var(--smt-transition-fast, 0.2s ease);
}

.sre-empty-cart-rec-card:hover,
.smtbox-empty-cart-rec-card:hover {
    border-color: var(--smt-color-primary, #002780);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sre-empty-cart-rec-btn,
.smtbox-empty-cart-rec-btn {
    transition: background-color var(--smt-transition-fast, 0.2s ease);
}

.sre-empty-cart-rec-btn:hover,
.smtbox-empty-cart-rec-btn:hover {
    background-color: var(--smt-color-accent, #CF0921);
}

/* ==========================================================================
   SMTBOX RFQ Cart Portal, Tabs & Sourcing Forms (Decoupled from page-rfq-cart.php)
   Proof Marker: Stan: verified md, non-speculative
   ========================================================================== */

.smtbox-rfq-subtitle {
	color: #4b5563;
	font-size: 1.125rem;
	line-height: 1.6;
}

#smtbox-cart-table-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}

.smtbox-has-recaptcha .smtbox-spam-container,
body.has-recaptcha .smtbox-spam-container {
	display: none !important;
}

.smtbox-tabs {
	display: flex;
	border-bottom: 2px solid #e1e7f0;
	margin-bottom: 20px;
	background: #f7f9fc;
	border-radius: 4px 4px 0 0;
}

.smtbox-tab-btn {
	flex: 1;
	padding: 14px 20px;
	font-weight: 700;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	color: #5a6b82;
	cursor: pointer;
	text-align: center;
	font-size: 15px;
	font-family: 'Outfit', 'Inter', sans-serif;
	transition: all 0.3s ease;
	outline: none;
}

.smtbox-tab-btn:hover {
	color: #002780;
	background: #eef2f7;
}

.smtbox-tab-btn.active {
	color: #CF0921;
	border-bottom-color: #CF0921;
	background: #ffffff;
}

.smtbox-tab-content {
	display: none;
	animation: fadeIn 0.4s ease;
}

.smtbox-tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

.smtbox-form-wrapper {
	max-width: 600px;
	margin: 0 auto;
	text-align: left;
	background: #ffffff;
	border: 1px solid #C0CCD9;
	border-radius: 6px;
	padding: 30px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
	font-family: 'Inter', Helvetica, sans-serif;
}

.smtbox-form-group {
	margin-bottom: 20px;
}

.smtbox-form-label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	color: #3C4858;
	margin-bottom: 6px;
	font-family: 'Outfit', sans-serif;
}

.smtbox-form-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #C0CCD9;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.smtbox-form-input:focus {
	border-color: #002780;
	outline: none;
}

.smtbox-form-textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #C0CCD9;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	min-height: 100px;
	resize: vertical;
	transition: border-color 0.2s ease;
}

.smtbox-form-textarea:focus {
	border-color: #002780;
	outline: none;
}

.smtbox-spam-container {
	background: #fffdfd;
	border: 1px dashed #CF0921;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 20px;
}

.smtbox-btn-submit {
	display: block;
	width: 100%;
	background: #3E4857;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	padding: 12px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-transform: uppercase;
	text-align: center;
	transition: background 0.2s ease;
}

.smtbox-btn-submit:hover {
	background: #2b333e;
}

.smtbox-btn-submit:disabled {
	background: #cbd5e0;
	cursor: not-allowed;
}

.smtbox-msg-panel {
	display: none;
	font-family: Helvetica, sans-serif;
	font-size: 15px;
	text-align: left;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 20px;
	border: 1px solid;
}

.smtbox-msg-error {
	color: #661d1d;
	background-color: #ffeded;
	border-color: #ff4949;
}

.smtbox-msg-success {
	color: #085229;
	background-color: #e7faf0;
	border-color: #13ce66;
}
