/**
 * Custom WooCommerce Styles
 */

/* Cart quantity input styling */
.woocommerce .quantity .qty {
    width: 3rem !important;
    text-align: center;
    padding: 0.5rem;
    border: none;
    border-radius: 0.375rem;
}

/* Hide update cart button until quantity changes */
.woocommerce button[name="update_cart"] {
    display: none !important;
}

/* Custom styling for cart items */
.cart-item {
    transition: all 0.2s ease;
}

.cart-item:hover {
    background-color: #f9fafb;
}

/* Custom styling for the quantity buttons */
.cart-item .quantity {
    display: flex;
    align-items: center;
}

/* General image styling within cart items */
.cart-item img {
    display: block; /* Ensure image is block for sizing */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Default fit, can be overridden */
}

/* Specific thumbnail styles for the w-12 h-12 container */
.cart-item .w-12.h-12 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the container */
}

/* Credit card section styling */
.bg-indigo-700 {
    background-color: #4338ca;
}

.bg-indigo-600 {
    background-color: #4f46e5;
}

.border-indigo-500 {
    border-color: #6366f1;
}

.bg-green-500 {
    background-color: #10b981;
}

.bg-green-600 {
    background-color: #059669;
}

#related-products::before,
      #related-products::after {
        content: none !important;
        display: none !important;
      }

.hotspot-image {
    border-radius: 15px;
}
.hotspots {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

/* Notification icons sizing: visos notifikacijos piktogramos 50×50 px */
.woocommerce-notices-wrapper svg,
.wc-empty-cart-message svg,
.wc-block-components-notice-banner svg {
    width: 50px !important;
    height: 50px !important;
    fill: none !important;
    stroke: currentColor !important;
}

/* Coupon toggle icons sizing: Have a coupon? link icon */
.woocommerce-form-coupon-toggle svg,
.showcoupon svg {
    width: 50px !important;
    height: 50px !important;
}

.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
    padding: 1em;
    border: 1px solid #cccccc;
}

.woocommerce-NoticeGroup {
    display: none;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item > div {
        margin: 0.5rem 0;
    }
    
    .cart-item .flex-1 {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Categories drawer styling */
#drawer-categories {
    z-index: 9999 !important;
    position: fixed !important;
    --tw-z-index: 9999 !important; /* For Tailwind z-* classes */
}

#drawer-categories-open {
    background-color: #013334 !important;
    margin-left: 3rem;
}

body #drawer-categories {
    z-index: 9999 !important;
}

/* Override Tailwind z-50 class */
.z-50#drawer-categories {
    z-index: 9999 !important;
}

#drawer-categories-overlay {
    z-index: 9998 !important;
}

/* Dropdown menu styling */
#sort-dropdown-menu,
#brand-dropdown-menu,
#category-dropdown-menu,
#price-range-menu {
    z-index: 1000 !important;
    position: absolute;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Dropdown menu item styling */
#sort-dropdown-menu a,
#brand-dropdown-menu a,
#category-dropdown-menu a,
#price-range-menu a {
    padding: 12px 16px;
    transition: all 0.2s ease;
    line-height: 1.2;
}

/* Active dropdown items */
#sort-dropdown-menu a.bg-gray-100,
#brand-dropdown-menu a.bg-gray-100,
#category-dropdown-menu a.bg-gray-100,
#price-range-menu a.bg-gray-100 {
    background-color: #f3f4f6;
    border-left: 3px solid #4f46e5;
    padding-left: 13px;
}

/* Brand names in dropdown */
#brand-dropdown-menu a span.font-medium {
    font-size: 15px;
}

/* Count badges in dropdowns */
.text-gray-400 {
    color: #9ca3af;
    font-size: 13px;
    margin-left: 3px;
}

/* Brand counts in dropdown */
#brand-dropdown-menu a .text-gray-400 {
    margin-left: 4px;
}

/* Brand thumbnails styling */
#brand-dropdown-menu a img,
#brand-dropdown-button img {
    max-width: 100%;
    height: auto;
    width: 100%;
    object-fit: contain;
    border-radius: 0;
}

@media (max-width: 767px) {
    #brand-dropdown-button img {
        max-width: 20px;
        max-height: 20px;
    }
}

#brand-dropdown-button .w-6 {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

/* Button styling */
.flex.flex-col.md\:flex-row.md\:items-stretch.md\:justify-between.mb-6.gap-4.bg-white.rounded-lg.px-4.py-3.shadow-sm {
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Individual filter display styling */
.flex.items-center.text-sm.text-gray-700,
.flex.items-center.text-sm.text-gray-500 {
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: 500;
    height: 100%;
    line-height: 1.25rem;
    position: relative;
}

/* Add right border for filter elements */
.flex.items-center.text-sm.text-gray-700.ml-6.mr-6::after,
.flex.items-center.text-sm.text-gray-500.ml-6.mr-6::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 24px; /* Fixed height for consistent look */
    background-color: #e5e7eb;
    top: 50%;
    transform: translateY(-50%);
    right: -6px;
    z-index: 2;
    pointer-events: none;
    margin: 0 !important;
}

/* Fix spacing for filter elements */
.flex.items-center.text-sm.text-gray-700.ml-6.mr-6,
.flex.items-center.text-sm.text-gray-500.ml-6.mr-6 {
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

/* Left border for first filter */
.flex.items-center.text-sm.text-gray-700.ml-6.mr-6.font-medium.border-l-2 {
    border-color: #e5e7eb !important;
    border-left-width: 1px !important;
    padding-left: 0.75rem !important;
}

/* Handle the filter bar container */
.flex.flex-col.md\:flex-row.md\:items-center.md\:justify-between.mb-6.gap-4.bg-white.rounded-lg.shadow-sm > div:first-child {
    align-items: center !important;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 0.75rem;
}

/* Fix spacing for consistent look */
.p-2.rounded.border.border-gray-200,
#sort-icon-button {
    margin-right: 0.5rem;
}

/* Adjust the spacing between filter items */
.flex.items-center.text-sm.text-gray-700.ml-4.mr-4.font-medium.border-l.border-gray-200.pl-4 {
    height: 36px;
    display: flex;
    align-items: center;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

/* Add consistent border styling to all filter dividers */
.border-l.border-gray-200 {
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #e5e7eb;
}

/* Adjust category badge styling */
.ml-1\.5.bg-gray-100.text-gray-700.py-0\.5.px-2.rounded-full.text-xs.font-semibold {
    margin-left: 0.375rem !important;
    background-color: #f3f4f6;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

/* Make the filter row shadow more subtle */
.flex.flex-col.md\:flex-row.md\:items-center.md\:justify-between.mb-6.gap-4.bg-white.rounded-lg.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f3f4f6;
}

/* Brand image container */
.w-6.h-6.mr-2.flex-shrink-0 {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Price Range sidebar widget styling */
.price-filter-widget {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.price-filter-widget h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-filter-widget form {
    margin-bottom: 1rem;
}

.price-filter-widget .price-inputs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-filter-widget .price-inputs .input-group {
    flex: 1;
}

.price-filter-widget label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #4b5563;
}

.price-filter-widget .price-input {
    width: 100%;
    padding: 0.5rem;
    padding-left: 1.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.price-filter-widget .filter-button {
    width: 100%;
    background-color: #013334;
    color: white;
    padding: 0.625rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 1rem;
}

.price-filter-widget .filter-button:hover {
    background-color: #024445;
}

.price-filter-widget .price-ranges {
    margin-top: 1rem;
}

.price-filter-widget .price-range-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.5rem;
    color: #4b5563;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    margin: 0.25rem -0.5rem;
}

.price-filter-widget .price-range-item:hover {
    background-color: #f3f4f6;
    color: #013334;
}

.price-filter-widget .price-range-item.active {
    color: #013334;
    font-weight: 600;
}

.price-filter-widget .price-range-count {
    color: #9ca3af;
    font-size: 0.75rem;
}

.price-filter-widget .clear-filters {
    display: inline-block;
    margin-top: 0.5rem;
    color: #013334;
    font-size: 0.875rem;
    text-decoration: underline;
}

.price-filter-widget .clear-filters:hover {
    color: #024445;
}

/* Remove any flex gap that might be causing spacing */
.flex.items-center.space-x-2,
.flex.items-center {
    gap: 0 !important;
}

/* Highlight currently selected brand */
.bg-gray-100 {
    background-color: #f3f4f6;
}

/* Result count styling */
.woocommerce-result-count {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Filter row styling */
.flex.flex-col.md\:flex-row.md\:items-stretch.md\:justify-between.mb-6.gap-4.bg-white.rounded-lg.px-4.py-3.shadow-sm {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f3f4f6;
    margin-bottom: 2rem !important;
    padding: 1.6rem 2rem !important;
}

/* Make filter elements full height but keep icons centered */
.flex.flex-col.md\:flex-row.md\:items-stretch.md\:justify-between.mb-6.gap-4.bg-white.rounded-lg.px-4.py-3.shadow-sm > div:first-child {
    height: 100%;
    display: flex;
    align-items: stretch;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important; /* Remove any gap between flex items */
}

/* Grid/list view buttons - remove borders */
.p-2.rounded.border.border-gray-200 {
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 1.8rem !important; /* More vertical padding */
    margin-top: auto;
    margin-bottom: auto;
    border: none !important;
    background-color: transparent !important;
}

/* Make grid/list view icons their original size */
.p-2.rounded.border.border-gray-200 svg {
    width: 1rem !important;
    height: 1rem !important;
    flex-shrink: 0;
}

/* First button (grid view) styling - use yellow instead of pink for active state */
.p-2.rounded.border.border-gray-200.bg-pink-50.text-pink-600 {
    background-color: #FCD426 !important; /* Yellow background */
    color: #333 !important; /* Dark text for better contrast */
    border-radius: 0.5rem;
    border-color: #FCD426 !important; /* Match border to background */
}

/* Sort icon button - remove border */
#sort-icon-button {
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 1.8rem !important; /* More vertical padding */
    margin-top: auto;
    margin-bottom: auto;
    border: none !important;
    background-color: transparent !important;
}

#sort-icon-button svg {
    width: 1rem !important;
    height: 1rem !important;
    flex-shrink: 0;
}

/* Fix icon alignment */
#category-dropdown-button svg,
#brand-dropdown-button svg,
#price-range-button svg {
    flex-shrink: 0;
    width: 1rem !important;
    height: 1rem !important;
}

/* Product count badge styling */
#category-dropdown-button .ml-1\.5 {
    display: inline-flex;
    justify-content: center;
    background-color: #000000;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1;
    margin: auto 0.75rem !important;
    padding: 5px;
}

/* First grid/list button - add left padding */
.p-2.rounded.border.border-gray-200:first-child {
    margin-left: 0.2rem !important;
}

/* Grid/list view buttons styling */
.p-2.rounded.border.border-gray-200:hover {
    background-color: #FCD426 !important;
    color: #333 !important;
}

/* Maintain yellow on hover */
.p-2.rounded.border.border-gray-200.bg-pink-50.text-pink-600:hover {
    background-color: #FCD426 !important;
    color: #333 !important;
    border-color: #FCD426 !important;
}

/* Sort icon button - hover state */
#sort-icon-button:hover {
    background-color: #FCD426 !important;
    color: #333 !important;
}

#products-grid-ajax img {
    max-width: 80%;
    border-radius: 5px;
}

/* Dropdown button thumbnail */
#brand-dropdown-button .w-6 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem; /* Ensure minimum width */
    overflow: visible; /* Allow overflow for wide images */
}

/* Dropdown menu thumbnails */
#brand-dropdown-menu .w-5 {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    border-radius: 3px;
    min-width: 1.25rem; /* Ensure minimum width */
    overflow: visible; /* Allow overflow for wide images */
}

/* Ensure dropdown containers have high stacking context */
.dropdown-container {
    position: relative;
    z-index: 1000;
}

/* Dropdown buttons styling */
#sort-icon-button,
#brand-dropdown-button,
#category-dropdown-button,
#price-range-button {
    transition: all 0.2s ease;
    margin: 0 !important; /* Remove any margins that could create gaps */
    border-radius: 0 !important; /* Remove border radius that might cause visual gaps */
}

#sort-icon-button:hover {
    background-color: #f9fafb;
}

/* Fix hover background to fully extend to borders */
#brand-dropdown-button,
#category-dropdown-button,
#price-range-button {
    position: relative;
    padding-left: 1rem !important;
    padding-right: 2rem !important;
    padding-top: 1.6rem !important;
    padding-bottom: 1.6rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    text-transform: uppercase !important;
    color: #013334;
    font-weight: 700;
}

/* Hover effect using ::before for a perfect edge-to-edge background */
#brand-dropdown-button:hover::before,
#category-dropdown-button:hover::before,
#price-range-button:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FCD426;
    z-index: -1;
    border: none !important;
    margin: 3px !important;
    border-radius: 0.2rem !important;
}

/* Right border separators */
#category-dropdown-button::after,
#brand-dropdown-button::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%; /* Full height */
    background-color: #e5e7eb;
    top: 0; /* Start from the very top */
    right: 0;
    z-index: 2;
    pointer-events: none;
    margin: 0 !important;
}

/* Left border for first filter */
#category-dropdown-button {
    border-left: 1px solid #e5e7eb !important;
}

/* Increase spacing in dropdowns */
#brand-dropdown-menu .py-1,
#sort-dropdown-menu .py-1,
#category-dropdown-menu .py-1,
#price-range-menu .py-1 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Category menu styling */
#category-dropdown-menu .ml-3 {
    color: #6b7280;
    font-weight: bold;
}

#category-dropdown-menu a {
    position: relative;
}

#category-dropdown-menu a svg.inline-block {
    vertical-align: middle;
}

/* Filter row styling */
.flex.flex-col.md\\:flex-row.md\\:items-stretch.md\\:justify-between.mb-6.gap-4.bg-white.rounded-lg.px-4.py-3.shadow-sm {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f3f4f6;
    margin-bottom: 2rem !important;
    padding: 1.6rem 2rem !important;
}

/* Make filter elements full height but keep icons centered */
.flex.flex-col.md\\:flex-row.md\\:items-stretch.md\\:justify-between.mb-6.gap-4.bg-white.rounded-lg.px-4.py-3.shadow-sm > div:first-child {
    height: 100%;
    display: flex;
    align-items: stretch;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important; /* Remove any gap between flex items */
}

/* Grid/list view buttons - remove borders */
.p-2.rounded.border.border-gray-200 {
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 1.8rem !important; /* More vertical padding */
    margin-top: auto;
    margin-bottom: auto;
    border: none !important;
    background-color: transparent !important;
}

/* Make grid/list view icons their original size */
.p-2.rounded.border.border-gray-200 svg {
    width: 1rem !important;
    height: 1rem !important;
    flex-shrink: 0;
}

/* First button (grid view) styling - use yellow instead of pink for active state */
.p-2.rounded.border.border-gray-200.bg-pink-50.text-pink-600 {
    background-color: #FCD426 !important; /* Yellow background */
    color: #333 !important; /* Dark text for better contrast */
    border-radius: 0.5rem;
    border-color: #FCD426 !important; /* Match border to background */
}

/* Sort icon button - remove border */
#sort-icon-button {
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 1.8rem !important; /* More vertical padding */
    margin-top: auto;
    margin-bottom: auto;
    border: none !important;
    background-color: transparent !important;
}

#sort-icon-button svg {
    width: 1rem !important;
    height: 1rem !important;
    flex-shrink: 0;
}

/* Fix icon alignment */
#category-dropdown-button svg,
#brand-dropdown-button svg,
#price-range-button svg {
    flex-shrink: 0;
    width: 1rem !important;
    height: 1rem !important;
}

/* Product count badge styling */
#category-dropdown-button .ml-1\.5 {
    display: inline-flex;
    justify-content: center;
    background-color: #000000;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1;
    margin: auto 0.75rem !important;
    padding: 5px;
}

/* First grid/list button - add left padding */
.p-2.rounded.border.border-gray-200:first-child {
    margin-left: 0.2rem !important;
}

/* Grid/list view buttons styling */
.p-2.rounded.border.border-gray-200:hover {
    background-color: #FCD426 !important;
    color: #333 !important;
}

/* Maintain yellow on hover */
.p-2.rounded.border.border-gray-200.bg-pink-50.text-pink-600:hover {
    background-color: #FCD426 !important;
    color: #333 !important;
    border-color: #FCD426 !important;
}

/* Sort icon button - hover state */
#sort-icon-button:hover {
    background-color: #FCD426 !important;
    color: #333 !important;
}

/* Brand filter checkbox styling */
.form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: #fff;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
}

.form-checkbox:checked {
    background-color: #013334;
    border-color: #013334;
}

.form-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 0.5rem;
    height: 0.3rem;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

.form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(1, 51, 52, 0.2);
}

/* Brand filter label styling */
.brands-ajax-form label {
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    padding: 0.5rem;
    margin: -0.5rem;
}

.brands-ajax-form label:hover {
    background-color: #f3f4f6;
}

/* Active state for labels */
.brands-ajax-form label.text-\[\#013333\] {
    font-weight: 500;
}

/* Brand filter disabled items */
.brands-ajax-form label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.brands-ajax-form label.disabled input {
    pointer-events: none;
}

/* Main menu styles */
nav.lg\:flex.items-center.space-x-6.text-black a,
nav.xl\:flex.items-center.space-x-6.text-black a,
.menu-primary-menu-container ul li a {
    color: #003334 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Related Products Grid */
.related.products {
    width: 100%; /* Take full width of its parent container */
    box-sizing: border-box;
    margin-top: 2em; /* Add some space above the related products section */
}

.related.products h2 {
    margin-bottom: 1em; /* Space below title */
}

.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 1.5em; /* Adjust gap as needed, e.g., 24px if base font is 16px */
    list-style: none;
    padding: 0;
    margin: 0;
}

.quantity {
    border: 1px solid;
    display: inline-flex !important;
    border-radius: 5px;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #003334;
    font-size: 1.25em;
}

.pop-up-button {
    margin-top: 1.5rem !important;
}

.woocommerce-checkout #payment {
    background: rgb(184 184 184 / 14%);
}

#billing_country_field {
    padding-top: 55px;
}

.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
    font-weight: 700;
    font-size: 1em;
}

.related.products ul.products li.product {
    /* No width needed, grid handles it */
    margin: 0;
    padding: 0; /* Reset padding if any was inherited or specific by previous rules */
}

.woocommerce-form-login-toggle {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) { /* 2 columns on tablets */
    .related.products ul.products.columns-4 { 
        grid-template-columns: repeat(2, 1fr);
        gap: 1em; /* Adjust gap for 2 columns */
    }
}

@media (max-width: 640px) { /* 1 column on mobile */
    .related.products ul.products.columns-4 {
        grid-template-columns: 1fr;
        gap: 1em; /* Adjust gap for 1 column */
    }
}

/* Sticky Order Summary on checkout */
@media (min-width: 768px) {
  #order-summary-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 5rem; /* adjust this offset as needed to sit below header */
  }
}

/* Hide all WooCommerce notices/messages/errors specifically on Checkout page */
body.woocommerce-checkout .woocommerce-notices-wrapper,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-error {
    display: none !important;
}

/* Ensure modal login form WooCommerce notice groups are visible */
#checkout-login-modal .woocommerce-NoticeGroup,
#checkout-login-modal .woocommerce-NoticeGroup__notice {
    display: block !important;
    opacity: 1 !important;
}

/* AJAX Login Error Message Styling */
#checkout-login-modal .woocommerce-error-ajax {
    display: flex;
    align-items: flex-start;
    padding: 1em;
    margin-bottom: 1.5em;
    background-color: #fef2f2; /* Light red */
    border-radius: 8px;
    border: 1px solid #fca5a5; /* Medium red */
    color: #b91c1c; /* Dark red text */
    font-size: 0.9em;
    line-height: 1.4;
}

#checkout-login-modal .woocommerce-error-ajax::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 0.75em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23b91c1c'%3E%3Cpath fill-rule='evenodd' d='M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z' clip-rule='evenodd' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/*
 * New Login Modal Styles
 * --------------------------------------------------
 */
.login-modal-container {
    max-width: 420px !important;
    padding: 2.5rem 2rem !important;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease-in-out;
}

#close-checkout-login-modal {
    font-size: 1.8rem;
    line-height: 1;
}

.login-logo-container {
    background-color: transparent; /* Remove old background */
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style the logo image itself */
.login-logo-container .custom-logo {
    max-height: 89px; /* Control logo size */
    width: auto;
    margin-top: 0;
    margin-bottom: 0;
}

.login-modal-header h2 {
    font-size: 1.75rem; /* ~28px */
    font-weight: 700;
    color: #1f2937; /* Tailwind gray-800 */
    margin-bottom: 0.25rem;
}

.login-modal-container .form-row {
    margin-bottom: 1.25rem;
}

/* Add padding to the left of the input to make space for the icon */
.login-modal-container .input-text {
    border: 1px solid #d1d5db; /* Tailwind gray-300 */
    border-radius: 8px !important;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem !important; /* top, right, bottom, left */
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 44px;
}

.login-modal-container .input-text:focus {
    border-color: #3B82F6 !important; /* Tailwind blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    outline: none;
}

.login-modal-container .woocommerce-form-login__submit {
    background-color: #FCD426 !important;
    color: #1f2937 !important; /* Dark text for better contrast on yellow */
    font-weight: 600 !important;
    width: 100%;
    padding: 0.85rem !important;
    border-radius: 8px !important;
    border: none !important;
    transition: background-color 0.2s;
    text-transform: none !important;
    font-size: 1rem !important;
}

.login-modal-container .woocommerce-form-login__submit:hover {
    background-color: #eab308 !important; /* A darker yellow for hover */
}

/* Override for AJAX error message to match new design */
#checkout-login-modal .woocommerce-error-ajax {
    padding: 1em 1.25em;
    font-size: 0.95em;
}

/* Remove default WooCommerce form styling that interferes */
.login-modal-container form.login {
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

/*
 * Checkout User Initials Avatar
 * --------------------------------------------------
 */
.initials-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 9999px; /* Fully rounded */
    background-color: #FCD426; /* Same yellow as the login button */
    color: #1f2937; /* Dark gray for better contrast */
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

/*
 * My Account Dropdown Menu
 * --------------------------------------------------
 */
#my-account-dropdown .my-account-dropdown-button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

#my-account-dropdown .my-account-dropdown-menu {
    border: 1px solid #e5e7eb; /* Tailwind gray-200 */
}

#my-account-dropdown .my-account-dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#my-account-dropdown .my-account-dropdown-menu li a {
    transition: background-color 0.2s;
    font-weight: 400;
}

#my-account-dropdown .my-account-dropdown-menu li.is-active a {
    font-weight: 600;
    color: #1d4ed8; /* Tailwind blue-700 */
}

/*
 * ========================================================================
 * My Account Page Redesign
 * ========================================================================
 */

/* Main container and title */
.account-settings-container {
    max-width: 1280px; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 0; /* Removed horizontal padding to make component wider */
}

.account-settings-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #111827; /* Tailwind gray-900 */
}

/* Two-column layout */
.account-settings-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

/* Sidebar Navigation */
.account-settings-sidebar {
    width: 25%;
    min-width: 220px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 0.5rem;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem; /* rounded-md */
    color: #374151; /* gray-700 */
    text-decoration: none;
    transition: background-color 0.2s;
}

.woocommerce-MyAccount-navigation li a:hover {
    background-color: #f3f4f6; /* gray-100 */
}

.woocommerce-MyAccount-navigation li.is-active a {
    background-color: #eef2ff; /* indigo-50 */
    color: #4f46e5; /* indigo-600 */
    font-weight: 600;
}

.woocommerce-MyAccount-navigation li a[href*="customer-logout"] {
    color: #dc2626; /* red-600 */
}
.woocommerce-MyAccount-navigation li.is-active a[href*="customer-logout"] {
    color: #dc2626; /* red-600 */
    background-color: #fee2e2; /* red-100 */
}

/* Main Content Area */
.account-settings-content {
    width: 75%;
}

.woocommerce-MyAccount-content {
    background-color: white;
    border: 1px solid #e5e7eb; /* Tailwind gray-200 */
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

/* Generic styling for content elements */
.account-settings-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.woocommerce-MyAccount-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Styling for forms (Account Details, Addresses) */
.woocommerce-MyAccount-content form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.woocommerce-MyAccount-content .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.woocommerce-MyAccount-content label {
    font-weight: 500;
    color: #374151; /* Tailwind gray-700 */
}

.woocommerce-MyAccount-content .input-text,
.woocommerce-MyAccount-content select {
    border: 1px solid #d1d5db !important; /* Tailwind gray-300 */
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce-MyAccount-content .input-text:focus {
    border-color: #3B82F6 !important; /* Tailwind blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    outline: none;
}

.woocommerce-MyAccount-content .woocommerce-Button {
    background-color: #2563EB !important; /* Tailwind blue-600 */
    color: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 0.85rem 1.5rem !important;
    align-self: flex-start;
    border: none !important;
    transition: background-color 0.2s;
}
.woocommerce-MyAccount-content .woocommerce-Button:hover {
    background-color: #1D4ED8 !important; /* Tailwind blue-700 */
}

/* Styling for Orders table */
.woocommerce-MyAccount-content .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-MyAccount-content .woocommerce-orders-table th,
.woocommerce-MyAccount-content .woocommerce-orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb; /* Tailwind gray-200 */
}
.woocommerce-MyAccount-content .woocommerce-orders-table th {
    font-weight: 600;
    background-color: #f9fafb; /* Tailwind gray-50 */
}

/* Make "Delete Account" red */
.woocommerce-MyAccount-navigation-link--delete-account a {
    color: #dc2626 !important; /* Tailwind red-600 */
}
.woocommerce-MyAccount-navigation-link--delete-account a:hover,
.woocommerce-MyAccount-navigation-link--delete-account.is-active a {
    background-color: #fee2e2 !important; /* Tailwind red-100 */
    color: #b91c1c !important; /* Tailwind red-800 */
}

/* Orders Table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.woocommerce-orders-table thead {
    border-bottom: 2px solid #e5e7eb; /* gray-200 */
}

.woocommerce-orders-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563; /* gray-600 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.woocommerce-orders-table tbody tr {
    border-bottom: 1px solid #f3f4f6; /* gray-100 */
}

.woocommerce-orders-table tbody tr:last-child {
    border-bottom: none;
}

.woocommerce-orders-table td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #374151; /* gray-700 */
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    font-weight: 600;
    color: #4f46e5; /* indigo-600 */
    text-decoration: none;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 9999px; /* rounded-full */
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151; /* gray-700 */
    background-color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
    background-color: #f9fafb; /* gray-50 */
    border-color: #9ca3af; /* gray-400 */
}

/* Edit Account Form */
.woocommerce-EditAccountForm label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151; /* gray-700 */
}

.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce-EditAccountForm input[type="text"]:focus,
.woocommerce-EditAccountForm input[type="email"]:focus,
.woocommerce-EditAccountForm input[type="password"]:focus {
    outline: none;
    border-color: #4f46e5; /* indigo-600 */
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.woocommerce-EditAccountForm .form-row {
    margin-bottom: 1rem;
}

.woocommerce-EditAccountForm fieldset {
    border: none;
    padding: 0;
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb; /* gray-200 */
    padding-top: 2rem;
}

.woocommerce-EditAccountForm legend {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0;
}

.woocommerce-EditAccountForm .woocommerce-Button {
    background-color: #4f46e5; /* indigo-600 */
    color: white;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.375rem; /* rounded-md */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.woocommerce-EditAccountForm .woocommerce-Button:hover {
    background-color: #4338ca; /* indigo-700 */
}

/*
* View Order Page Styling
* Styles to make the standalone order view page consistent with the account dashboard design.
*/
.woocommerce-view-order .woocommerce-order-details,
.woocommerce-view-order .woocommerce-customer-details {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.woocommerce-view-order h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-view-order .woocommerce-table--order-details {
    width: 100%;
}

.woocommerce-view-order .woocommerce-table--order-details th,
.woocommerce-view-order .woocommerce-table--order-details td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6; /* gray-100 */
}

.woocommerce-view-order .woocommerce-table--order-details tfoot tr:first-child th,
.woocommerce-view-order .woocommerce-table--order-details tfoot tr:first-child td {
    border-top: 2px solid #e5e7eb; /* gray-200 */
}

.woocommerce-view-order .woocommerce-table--order-details tfoot th,
.woocommerce-view-order .woocommerce-table--order-details tfoot td {
    border-bottom: none;
    font-weight: 600;
}

.woocommerce-view-order .woocommerce-customer-details .woocommerce-column--billing-address,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-column--shipping-address {
    margin-top: 1rem;
}

.woocommerce-view-order .woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.6;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.375rem;
}

/*
* My Account - Addresses Page Styling
*/
.woocommerce-account .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.woocommerce-Address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

.woocommerce-Address-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.woocommerce-Address-header .edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 9999px; /* rounded-full */
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151; /* gray-700 */
    background-color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce-Address-header .edit:hover {
    background-color: #f9fafb; /* gray-50 */
    border-color: #9ca3af; /* gray-400 */
}

.woocommerce-Address address {
    font-style: normal;
    line-height: 1.6;
    color: #4b5563; /* gray-600 */
}

/*
* My Account - Edit Address Form Styling
*/
.woocommerce-MyAccount-content form.woocommerce-form-edit-address h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.woocommerce-address-fields .form-row-wide {
    grid-column: span 2;
}

.woocommerce-address-fields .form-row {
    margin: 0;
    padding: 0;
}

.woocommerce-address-fields label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151; /* gray-700 */
}

.woocommerce-address-fields .input-text,
.woocommerce-address-fields select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
    line-height: 1.5;
    height: auto !important;
}

.woocommerce-address-fields .input-text:focus,
.woocommerce-address-fields select:focus {
    outline: none;
    border-color: #4f46e5; /* indigo-600 */
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Select2 compatibility */
.woocommerce-address-fields .select2-container--default .select2-selection--single {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #fff;
    height: auto !important;
}

.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #374151;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
}

.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 0.25rem;
}

.woocommerce-MyAccount-content button[name="save_address"] {
    background-color: #4f46e5; /* indigo-600 */
    color: white;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.375rem; /* rounded-md */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1.5rem;
}

.woocommerce-MyAccount-content button[name="save_address"]:hover {
    background-color: #4338ca; /* indigo-700 */
}

/* ---------------------------- */
/* My Account: mobile/tablet    */
/* ---------------------------- */
@media (max-width: 1024px) {
  /* Stack layout */
  .account-settings-layout {
    flex-direction: column;
  }
  .account-settings-sidebar {
    width: 100%;
    min-width: 0;
    margin-bottom: 1.5rem;
  }
  /* Horizontal nav bar */
  .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 0.75rem;
    border-bottom: 1px solid #e5e7eb; /* divider */
    padding-bottom: 1rem;
  }
  .woocommerce-MyAccount-navigation li {
    margin-bottom: 0;
  }
  .woocommerce-MyAccount-navigation li a {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
  }
  /* Active link underline for better visibility */
  .woocommerce-MyAccount-navigation li.is-active a {
    border-bottom: 3px solid #4f46e5;
    background-color: transparent;
  }
  /* Main content full width */
  .account-settings-content {
    width: 100%;
  }
}

/* Scrollable Orders table on small screens */
@media (max-width: 640px) {
  .woocommerce-MyAccount-content .woocommerce-orders-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .woocommerce-orders-table thead {
    display: table-header-group; /* keep header visible */
  }
  .woocommerce-orders-table tr {
    display: table-row;
  }
  .woocommerce-orders-table th,
  .woocommerce-orders-table td {
    white-space: nowrap;
  }
} 