/* Product Quiz Spacing */
.product-quiz-title {
    margin-top: 36px;
}

/* Single Product Page Layout */
.single-product .comparison-section {
    padding: 0 30px;
}
.single-product .comparison-section h3 {
    margin: 0 0 20px;
}
.single-product .col-compare.compare-full-width {
    flex: 0 0 100%;
    max-width: 100%;
    border-top: 1px solid #a4a4a4;
}
.single-product .compare-full-width .top-section img {
    width: auto;
}
.single-product .compare-full-width .comparison-list {
    width: 100%;
}
.single-product .wc-tabs-wrapper {
    margin: 0 15px;
}

/* Hide Default Add to Cart on Variations (Cleanup) */
.single-product .variations_form .single_add_to_cart_button::before {
    display: none;
}

/* Make quantity input same width and style as dropdowns */
.single-product .quantity {
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem; /* Space between Clear link and quantity */
}

.single-product .woocommerce-variation-add-to-cart .quantity input[type="number"] {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #333; /* Darker text color to match dropdowns */
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.single-product .woocommerce-variation-add-to-cart .quantity input[type="number"]::-webkit-outer-spin-button,
.single-product .woocommerce-variation-add-to-cart .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart Totals Layout */
.cart_totals .wc-proceed-to-checkout {
    display: flex;
    flex-direction: column;
}
.cart_totals .wc-proceed-to-checkout a.btn {
    order: -1;
    margin-bottom: 24px;
}

/* Payment Button Hiding/Cleanup */
.wc-apa-button-separator,
#wc-stripe-payment-request-button-separator,
.single-product div#wc-stripe-payment-request-wrapper,
div#wc-stripe-payment-request-wrapper {
    display: none !important;
}
div#wc-stripe-payment-request-button {
    margin-bottom: 24px;
}
#pay_with_amazon {
    width: 100% !important;
}

/* Payment button alignment (match field widths + spacing) */
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.single-product .woocommerce-variation-add-to-cart #amzn-buy-now,
.single-product .woocommerce-variation-add-to-cart #amzn-buy-now iframe,
.single-product .woocommerce-variation-add-to-cart .bwp-widget-loaded,
.single-product .woocommerce-variation-add-to-cart #pay_with_amazon,
.single-product .woocommerce-variation-add-to-cart #wc-stripe-payment-request-button,
.single-product .woocommerce-variation-add-to-cart .wc-stripe-payment-request-button,
.single-product .woocommerce-variation-add-to-cart .payment-request-button,
.single-product .woocommerce-variation-add-to-cart .stripe-payment-request-button {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.single-product .woocommerce-variation-add-to-cart #amzn-buy-now,
.single-product .woocommerce-variation-add-to-cart #pay_with_amazon,
.single-product .woocommerce-variation-add-to-cart #wc-stripe-payment-request-button,
.single-product .woocommerce-variation-add-to-cart .bwp-widget-loaded,
.single-product .woocommerce-variation-add-to-cart .wc-stripe-payment-request-button {
    margin-top: 12px;
}

/* Responsive Adjustments */
@media only screen and (min-width: 991px) {
    .product-comparison-shots .shots-2 {
        padding-bottom: 20px;
    }
}

/* Fix Fuzzy H1 on Mobile (iPhone) */
.hero h1 {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 20;
    position: relative;
}

/* --- ACCESSIBILITY CONTRAST FIXES --- */

/* 1. Top Secondary Nav (FAQ, About, etc) */
.secondary-nav .nav-link {
    color: #333333 !important;
}

/* 2. Feature Section Text (The paragraphs under icons) */
.features .content p {
    color: #212529;
}

/* 3. Callout Links (Buy TetherTies >>) */
.callout a {
    color: #006080;
    font-weight: 700;
}

/* 4. Footer Text & Links (Phone, Address, Email) */
.footer-wrapper,
.footer-wrapper .textwidget,
.footer-wrapper a,
.footer-wrapper dd,
.footer-wrapper address,
.footer-wrapper li {
    color: #333333 !important;
}

.footer-wrapper a:hover {
    text-decoration: underline;
    color: #000000 !important;
}

/* 5. Global Notification Banner (Accessibility Fix) */
.global-notification-banner {
    background-color: #007698 !important;
    color: #ffffff !important;
}

.global-notification-banner strong {
    color: #ffffff !important;
}

/* Woo Tabs Arrow Indicators */
.woocommerce-tabs ul.tabs li a {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.woocommerce-tabs ul.tabs li a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active a::after,
.woocommerce-tabs ul.tabs li a.active::after {
    transform: rotate(180deg);
    border-top-color: inherit;
}

/* =====================================================
   PRODUCT VARIATION DROPDOWNS - CLEAN STYLING
   ===================================================== */

/* Variation table layout */
.variations {
    margin-bottom: 1.5rem;
}

.variations tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem; /* Space between each variation field */
}

.variations th {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 0.25rem; /* Tight space between label and dropdown */
}

.variations td {
    width: 100%;
    padding: 0;
}

/* Style the variation labels */
.variations th label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0;
}

/* Variation label layout used in current template markup */
.variations .label label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* Variation select dropdowns */
.variations select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    
    /* Custom dropdown arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.variations select:hover {
    border-color: #999;
}

.variations select:focus {
    outline: none;
    border-color: #007698;
    box-shadow: 0 0 0 3px rgba(0, 118, 152, 0.1);
}

/* Disabled state */
.variations select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Reset variations link */
.reset_variations {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 14px;
    color: #007698;
    text-decoration: underline;
    cursor: pointer;
}

.reset_variations:hover {
    color: #005a78;
}

/* Add spacing after the last variation row (Color) before quantity */
.variations tbody tr:last-child {
    margin-bottom: 1rem; /* Extra space before quantity field */
}

/* Variation description/price that appears after selection */
.woocommerce-variation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.woocommerce-variation-price {
    margin-bottom: 1rem;
}

/* Add to cart button - TetherTies blue color */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button,
.woocommerce .single-product .single_add_to_cart_button {
    background-color: #007698 !important;
    border-color: #007698 !important;
}

.single-product .single_add_to_cart_button:hover,
.single-product button.single_add_to_cart_button:hover,
.woocommerce .single-product .single_add_to_cart_button:hover {
    background-color: #005a78 !important;
    border-color: #005a78 !important;
}
