/*
Theme Name: Kasa Shop Theme
Author: Kasa.hr
Description: Prilagođena WooCommerce tema sa Tailwind CSS-om i ispravljenim WooCommerce prikazom.
Version: 1.1.0
Text Domain: kasa-theme
*/

/* --- WOOCOMMERCE FIXES & TAILWIND OVERRIDES --- */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

@media (min-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.woocommerce ul.products::before, .woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 1rem !important;
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-4px) !important;
}

.woocommerce ul.products li.product a img {
    margin-bottom: 1rem !important;
    border-radius: 0.5rem !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: 1/1 !important;
    background-color: #f9fafb !important;
    padding: 1rem !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem !important;
    font-family: 'Inter', sans-serif !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product .price {
    color: #00337C !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.25rem !important;
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    margin-right: 0.5rem !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
}

.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    background-color: #D4E157 !important;
    color: #00337C !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    text-align: center !important;
    transition: background-color 0.2s !important;
    display: flex !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #cddc39 !important;
    color: #00337C !important;
}

.woocommerce span.onsale {
    background-color: #ef4444 !important;
    color: white !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    position: absolute !important;
    top: -0.5rem !important;
    left: -0.5rem !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1 !important;
    z-index: 10 !important;
}

/* Sorting & Results Count */
.woocommerce .woocommerce-ordering select {
    padding: 0.5rem 2rem 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #d1d5db !important;
    background-color: white !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    outline: none !important;
    appearance: auto !important;
}

.woocommerce .woocommerce-result-count {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    margin-bottom: 1rem !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
    display: flex !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    margin-top: 3rem !important;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    border: 1px solid #e5e7eb !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    color: #374151 !important;
    background: white !important;
    font-weight: 500 !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #00337C !important;
    color: white !important;
    border-color: #00337C !important;
}

/* --- WOOCOMMERCE CART & CHECKOUT REDESIGN --- */
.woocommerce-cart .woocommerce {
    display: flex !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}
.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 60% !important;
}
.woocommerce-cart .cart-collaterals {
    flex: 1 1 30% !important;
}

/* Cart Table */
.woocommerce table.shop_table {
    border: 1px solid #e5e7eb !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    border-collapse: separate !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
}
.woocommerce table.shop_table th {
    background-color: #f9fafb !important;
    color: #374151 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    padding: 1rem !important;
    border-bottom: 1px solid #e5e7eb !important;
}
.woocommerce table.shop_table td {
    padding: 1rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    vertical-align: middle !important;
}
.woocommerce table.shop_table td.actions {
    background-color: #f9fafb !important;
    padding: 1.5rem 1rem !important;
    border-bottom: none !important;
}

/* Inputs and Buttons */
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.woocommerce table.shop_table td.actions .coupon .input-text {
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    outline: none !important;
    width: 100% !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce table.shop_table td.actions .coupon .input-text:focus {
    border-color: #00337C !important;
    box-shadow: 0 0 0 2px rgba(0, 51, 124, 0.2) !important;
}

/* Cart Totals Box */
.woocommerce-cart .cart-collaterals .cart_totals {
    background-color: #f9fafb !important;
    padding: 2rem !important;
    border-radius: 1rem !important;
    border: 1px solid #e5e7eb !important;
    width: 100% !important;
}
.woocommerce-cart .cart-collaterals h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 1rem !important;
}

/* Global Woo Buttons */
.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt,
.woocommerce a.button.checkout {
    background-color: #D4E157 !important;
    color: #00337C !important;
    border-radius: 0.75rem !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: flex !important;
    width: 100% !important;
    transition: background-color 0.2s !important;
}
.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover,
.woocommerce a.button.checkout:hover {
    background-color: #cddc39 !important;
    color: #00337C !important;
}

.woocommerce button.button {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
}
.woocommerce button.button:hover {
    background-color: #e5e7eb !important;
}

/* Fix for Recent Products shortcode on front page */
.woocommerce.kasa-recent-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}
@media (min-width: 640px) {
    .woocommerce.kasa-recent-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 1024px) {
    .woocommerce.kasa-recent-products ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
.woocommerce.kasa-recent-products ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

/* Single Product Custom Overrides */
.woocommerce-product-gallery {
    border-radius: 1.5rem !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
}
.woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    border-radius: 1.5rem !important;
}
.single-product-cart-override button[type="submit"] {
    width: 100% !important;
    background: #00337C !important;
    color: #fff !important;
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    transition: background-color 0.2s !important;
}
.single-product-cart-override button[type="submit"]:hover {
    background: #002255 !important;
    color: #fff !important;
}
/* Hide standard Woo tabs and elements we manually replaced */
.woocommerce div.product .woocommerce-tabs {
    display: none !important;
}
.woocommerce div.product .product_title,
.woocommerce div.product p.price,
.woocommerce div.product .woocommerce-product-rating,
.woocommerce div.product .stock {
    display: none !important;
}
.single-product-cart-override .quantity {
    display: none !important;
}

/* Advanced Checkout Styling */
.woocommerce-checkout .col2-set {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .woocommerce-checkout .col2-set {
        flex-direction: row;
    }
    .woocommerce-checkout .col-1, .woocommerce-checkout .col-2 {
        width: 100% !important;
        float: none !important;
        max-width: 100%;
    }
}
#order_review_heading, #order_review {
    background: #f9fafb !important;
    padding: 2rem !important;
    border-radius: 1rem !important;
    border: 1px solid #e5e7eb !important;
    margin-top: 2rem !important;
}

/* Update Recent Products Mobile Grid */
@media (max-width: 639px) {
    .woocommerce.kasa-recent-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
    }
    .woocommerce.kasa-recent-products ul.products li.product {
        font-size: 0.875rem !important;
    }
}

/* Scrollable Single Product Thumbnails */
.woocommerce-product-gallery .flex-control-nav {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin-top: 15px !important;
    scrollbar-width: thin;
    padding-bottom: 8px !important;
}
.woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar {
    height: 6px;
}
.woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.woocommerce-product-gallery .flex-control-nav li {
    flex: 0 0 80px !important;
    width: 80px !important;
    float: none !important;
    margin: 0 !important;
}
.woocommerce-product-gallery .flex-control-nav li img {
    border: 2px solid transparent !important;
    border-radius: 0.75rem !important;
    transition: border-color 0.2s !important;
}
.woocommerce-product-gallery .flex-control-nav li img.flex-active {
    border-color: #00337C !important;
}

/* Override Single Product Add to Cart Button */
.single-product-cart-override form.cart {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}
.single-product-cart-override form.cart div.quantity {
    margin: 0 !important;
}
.single-product-cart-override form.cart div.quantity input.qty {
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.75rem 1rem !important;
    height: 100% !important;
    min-height: 48px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    width: 80px !important;
}
.single-product-cart-override form.cart button.single_add_to_cart_button {
    background-color: #00337C !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 2rem !important;
    font-weight: 700 !important;
    min-height: 48px !important;
    border: none !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    min-width: 200px !important;
    cursor: pointer !important;
}
.single-product-cart-override form.cart button.single_add_to_cart_button:hover {
    background-color: #002255 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}
.single-product-cart-override form.cart button.single_add_to_cart_button.loading {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Add to Cart Toast Animation */
.kasa-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #10B981; /* Green */
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kasa-toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.kasa-toast svg {
    width: 20px;
    height: 20px;
}

/* Fix Related Products Heading styling */
.related.products h2:first-child, .upsells.products h2:first-child {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 1.5rem !important;
}

/* Grid Fixes for WooCommerce Shortcodes */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after {
    display: none !important;
}
@media (max-width: 1023px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
    }
}
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
    transition: all 0.2s !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    border-color: #e5e7eb !important;
}
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}
.woocommerce ul.products li.product img {
    margin: 0 auto 1rem auto !important;
    border-radius: 0.5rem !important;
    max-height: 200px !important;
    width: auto !important;
    object-fit: contain !important;
}
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
}
.woocommerce ul.products li.product .price {
    color: #00337C !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    margin-bottom: 1rem !important;
}
.woocommerce ul.products li.product .price del {
    color: #9ca3af !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    margin-right: 0.5rem !important;
}
.woocommerce ul.products li.product .button {
    background-color: #00337C !important;
    color: #fff !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-top: auto !important;
    display: flex !important;
    width: 100% !important;
}
.woocommerce ul.products li.product .button:hover {
    background-color: #002255 !important;
}
.woocommerce ul.products li.product .added_to_cart {
    text-align: center !important;
    display: flex !important;
    font-size: 0.75rem !important;
    margin-top: 0.5rem !important;
}

/* Sale Badge Styles */
.woocommerce span.onsale {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    margin: 0 !important;
    background-color: #EF4444 !important;
    color: white !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    z-index: 9 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    line-height: 1 !important;
}

/* Hide default sale flash on single product (we will manually position it) */
.woocommerce.single-product span.onsale {
    display: none !important;
}

/* Generic WooCommerce Buttons (Cart, Checkout) */
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button, 
.woocommerce #respond input#submit {
    background-color: #00337C !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 700 !important;
    border: none !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.5 !important;
}
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover, 
.woocommerce #respond input#submit:hover {
    background-color: #002255 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Secondary WooCommerce Buttons (e.g., Update Cart) */
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
    background-color: #00337C !important;
}

/* Single Product Gallery Fix (Images below main) */
.woocommerce-product-gallery {
    display: flex !important;
    flex-direction: column !important;
}
.woocommerce-product-gallery__wrapper {
    margin-bottom: 15px !important;
}
.woocommerce-product-gallery .flex-control-nav {
    position: static !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce-product-gallery .flex-control-nav li {
    float: none !important;
    width: calc(25% - 7.5px) !important; /* 4 in a row */
}

/* Protect Footer Logo from WooCommerce Table cart overrides */
.kasa-footer-logo {
    height: 24px !important;
    min-height: 24px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Grid Price Wrapper (Custom Dual Prices) */
.woocommerce ul.products li.product .kasa-grid-price-wrapper {
    margin-bottom: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.woocommerce ul.products li.product .kasa-grid-price-wrapper .price-no-tax {
    color: #00337C !important;
    font-weight: 800 !important;
    font-size: 1.125rem !important;
    line-height: 1.2 !important;
}
.woocommerce ul.products li.product .kasa-grid-price-wrapper .price-no-tax small {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}
.woocommerce ul.products li.product .kasa-grid-price-wrapper .price-tax {
    color: #374151 !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    line-height: 1.2 !important;
}
.woocommerce ul.products li.product .kasa-grid-price-wrapper .price-tax small {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
    font-weight: 500 !important;
}
/* Hide default Woo price to be safe */
.woocommerce ul.products li.product > .price {
    display: none !important;
}

/* Fix Onsale Badge (Top Left over Image) */
.woocommerce ul.products li.product {
    position: relative !important; 
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    position: static !important; /* Let product container handle positioning */
}
.woocommerce ul.products li.product span.onsale {
    position: absolute !important;
    top: 1rem !important;      
    left: 1rem !important;     
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    background-color: #EF4444 !important;
    color: white !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 0.25rem 0.6rem !important;
    border-radius: 9999px !important;
    z-index: 10 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Hide Gallery Scrollbar */
.woocommerce-product-gallery .flex-control-nav {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}
.woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari/Opera */
}

/* Hard enforce Footer Logo size and background on ALL pages */
img.kasa-footer-logo {
    height: 24px !important;
    max-height: 24px !important;
    min-height: 24px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    background: transparent !important;
}
/* Hide Flexslider navigation arrows in gallery */
.woocommerce-product-gallery .flex-direction-nav {
    display: none !important;
}

/* Fix gigantic magnifying glass on single product */
.woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 99 !important;
    background: white !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}
.woocommerce-product-gallery__trigger img {
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* WooCommerce Cart Variations & Attributes */
.woocommerce-cart-form dl.variation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}
.woocommerce-cart-form dl.variation dt {
    font-weight: 600;
    color: #4b5563; /* gray-600 */
    clear: both;
}
.woocommerce-cart-form dl.variation dd {
    margin: 0;
    color: #6b7280; /* gray-500 */
}
.woocommerce-cart-form dl.variation dd p {
    margin: 0;
}

/* Shipping Methods in Cart Totals */
#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
}
#shipping_method li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#shipping_method input[type="radio"] {
    accent-color: #00337C;
    width: 1rem;
    height: 1rem;
}
#shipping_method label {
    font-size: 0.875rem;
    color: #374151; /* gray-700 */
}

/* Shipping Calculator Form */
.shipping-calculator-button {
    font-size: 0.875rem;
    color: #00337C;
    font-weight: 600;
    text-decoration: underline;
}
.shipping-calculator-form {
    margin-top: 1rem;
}
.shipping-calculator-form p {
    margin-bottom: 0.75rem;
}
.shipping-calculator-form .input-text,
.shipping-calculator-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
}
.shipping-calculator-form .button {
    width: 100%;
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.2s;
}
.shipping-calculator-form .button:hover {
    background-color: #e5e7eb;
    color: #00337C;
}

/* Proceed to checkout button */
.wc-proceed-to-checkout .checkout-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #D4E157; /* brandYellow */
    color: #00337C; /* brandBlue */
    font-weight: 800;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: background-color 0.2s;
}
.wc-proceed-to-checkout .checkout-button:hover {
    background-color: #c5d345;
}

/* Cross Sells on Cart */
.cross-sells {
    margin-top: 3rem;
}
.cross-sells h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}
.cross-sells ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 768px) {
    .cross-sells ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Mini Cart override in sidecart (remove variations padding) */
.kasa-cart-item .variation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}
.kasa-cart-item .variation dt {
    font-weight: 600;
}
.kasa-cart-item .variation dd {
    margin: 0;
}
.kasa-cart-item .variation dd p {
    margin: 0;
}

/* Remove default WooCommerce loader */
.blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(2px) !important;
    opacity: 1 !important;
    border-radius: 1rem;
}
.woocommerce-cart .blockUI.blockOverlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5rem;
    height: 2.5rem;
    margin-top: -1.25rem;
    margin-left: -1.25rem;
    border: 3px solid #e5e7eb;
    border-top-color: #00337C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Mini Cart Widget Buttons */
.woocommerce-mini-cart__buttons .button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.2s;
    text-align: center;
}
.woocommerce-mini-cart__buttons .button:not(.checkout) {
    background-color: #f3f4f6;
    color: #374151;
}
.woocommerce-mini-cart__buttons .button:not(.checkout):hover {
    background-color: #e5e7eb;
    color: #00337C;
}
.woocommerce-mini-cart__buttons .button.checkout {
    background-color: #D4E157; /* brandYellow */
    color: #00337C;
    margin-top: 0.5rem;
}
.woocommerce-mini-cart__buttons .button.checkout:hover {
    background-color: #c5d345;
}

/* WooCommerce Notices (Success, Error, Info) */
.woocommerce-message, 
.woocommerce-error, 
.woocommerce-info {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    border: none;
}
.woocommerce-message {
    background-color: #ecfdf5; /* emerald-50 */
    color: #065f46; /* emerald-900 */
    border-left: 4px solid #10b981;
}
.woocommerce-error {
    background-color: #fef2f2; /* red-50 */
    color: #991b1b; /* red-900 */
    border-left: 4px solid #ef4444;
}
.woocommerce-info {
    background-color: #eff6ff; /* blue-50 */
    color: #1e3a8a; /* blue-900 */
    border-left: 4px solid #3b82f6;
}
.woocommerce-message a.button,
.woocommerce-error a.button,
.woocommerce-info a.button {
    background-color: white;
    color: currentColor;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    border: 1px solid currentColor;
    opacity: 0.9;
    transition: all 0.2s;
}
.woocommerce-message a.button:hover,
.woocommerce-error a.button:hover,
.woocommerce-info a.button:hover {
    opacity: 1;
    background-color: currentColor;
}
.woocommerce-message a.button:hover {
    color: #ecfdf5;
}
.woocommerce-error a.button:hover {
    color: #fef2f2;
}
.woocommerce-info a.button:hover {
    color: #eff6ff;
}
.woocommerce-error li {
    list-style: none;
    margin: 0;
}

/* ----------------------------------------- */
/* WooCommerce Checkout Redesign             */
/* ----------------------------------------- */

/* Remove standard woocommerce padding/margins if any on forms */
.woocommerce-checkout form.checkout {
    margin-top: 1rem;
}

.woocommerce-checkout h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827; /* gray-900 */
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6; /* gray-100 */
}

/* Form Fields */
.woocommerce-checkout .form-row {
    margin-bottom: 1.5rem;
    display: block;
    width: 100%;
}
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 48%;
    float: left;
}
.woocommerce-checkout .form-row-last {
    float: right;
}
.woocommerce-checkout .form-row::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151; /* gray-700 */
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.woocommerce-checkout .form-row .required {
    color: #ef4444; /* red-500 */
    text-decoration: none;
}

/* Inputs & Textareas */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: #111827; /* gray-900 */
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
    outline: none;
    border-color: #00337C;
    box-shadow: 0 0 0 3px rgba(0, 51, 124, 0.1);
}

/* Select2 (WooCommerce Country/State Dropdowns) */
.woocommerce-checkout .select2-container .select2-selection--single {
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.woocommerce-checkout .select2-container .select2-selection__rendered {
    padding-left: 1rem;
    font-size: 0.9375rem;
    color: #111827;
}
.woocommerce-checkout .select2-container .select2-selection__arrow {
    height: 48px;
    right: 12px;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9ca3af transparent transparent transparent;
}
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #00337C;
}

/* Validation Errors */
.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid .select2-selection {
    border-color: #ef4444; /* red-500 */
    background-color: #fef2f2;
}

/* Optional/Required Labels in WooCommerce */
.woocommerce-checkout .optional {
    color: #9ca3af; /* gray-400 */
    font-weight: normal;
}

/* Payment Box */
#payment {
    background: transparent;
    border-radius: 0;
}
#payment ul.payment_methods {
    padding: 0;
    margin: 0 0 1.5rem 0;
    border: none;
}
#payment ul.payment_methods li {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fafafa; /* gray-50 */
    transition: border-color 0.2s;
    list-style: none;
}
#payment ul.payment_methods li:hover {
    border-color: #d1d5db;
}
#payment ul.payment_methods li input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: #00337C;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}
#payment ul.payment_methods li label {
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin: 0;
}
#payment ul.payment_methods li label img {
    margin-left: 0.5rem;
    height: 24px;
    max-width: 100px;
    object-fit: contain;
}
#payment div.payment_box {
    padding: 1.25rem;
    margin: 1rem 0 0 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563; /* gray-600 */
    position: relative;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
#payment div.payment_box::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 2rem;
    width: 10px;
    height: 10px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    transform: rotate(45deg);
}
#payment div.payment_box p:last-child {
    margin-bottom: 0;
}

/* Place Order Button */
.place-order {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}
.place-order .button {
    width: 100%;
    padding: 1.25rem;
    background-color: #D4E157; /* brandYellow */
    color: #00337C; /* brandBlue */
    font-size: 1.125rem;
    font-weight: 800;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.place-order .button:hover {
    background-color: #c5d345;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0,0,0,0.1);
}
.place-order .button:active {
    transform: translateY(0);
}

/* Privacy policy text */
.woocommerce-privacy-policy-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.woocommerce-privacy-policy-text a {
    color: #00337C;
    text-decoration: underline;
}

/* Terms and Conditions checkbox */
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.woocommerce-terms-and-conditions-wrapper label {
    display: inline-flex;
    align-items: flex-start;
    cursor: pointer;
}
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    margin-top: 0.25rem;
    margin-right: 0.5rem;
    accent-color: #00337C;
    width: 1rem;
    height: 1rem;
}
.woocommerce-terms-and-conditions-wrapper a {
    color: #00337C;
    text-decoration: underline;
    font-weight: 600;
}

/* Mobile optimizations for checkout */
@media (max-width: 767px) {
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100%;
        float: none;
    }
}

/* ----------------------------------------- */
/* Universal Green Button Override           */
/* User request: "sve buttone ostavi u zelenoj boji" */
/* ----------------------------------------- */
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt,
.woocommerce-mini-cart__buttons .button,
.woocommerce-mini-cart__buttons .button.checkout,
.wc-proceed-to-checkout .checkout-button,
.single-product-cart-override form.cart button.single_add_to_cart_button,
.woocommerce-checkout .place-order .button,
.woocommerce-account .button,
.woocommerce-MyAccount-content .button {
    background-color: #D4E157 !important; /* brandYellow / Green */
    color: #00337C !important; /* brandBlue text for contrast */
    border: none !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
}

.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover,
.woocommerce-mini-cart__buttons .button:hover,
.woocommerce-mini-cart__buttons .button.checkout:hover,
.wc-proceed-to-checkout .checkout-button:hover,
.single-product-cart-override form.cart button.single_add_to_cart_button:hover,
.woocommerce-checkout .place-order .button:hover,
.woocommerce-account .button:hover,
.woocommerce-MyAccount-content .button:hover {
    background-color: #c5d345 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 8px -1px rgba(0,0,0,0.1) !important;
    color: #00337C !important;
}

/* ----------------------------------------- */
/* My Account Active Navigation              */
/* ----------------------------------------- */
.woocommerce-MyAccount-navigation li.is-active a {
    background-color: #f3f4f6 !important; /* gray-100 */
    color: #00337C !important; /* brandBlue */
    border-left: 4px solid #00337C !important;
    padding-left: 1.25rem !important; /* px-5 to offset 4px border (px-6 is 1.5rem, so 1.5 - 0.25) */
    font-weight: 700 !important;
}

/* Make tables in My Account look decent */
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}
.woocommerce-MyAccount-content table.shop_table th {
    background-color: #f9fafb;
    padding: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.woocommerce-MyAccount-content table.shop_table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 0.9375rem;
}

/* My Account Address blocks */
.woocommerce-Address {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.75rem;
}
.woocommerce-Address-title h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}
.woocommerce-Address address {
    font-style: normal;
    color: #4b5563;
    line-height: 1.6;
}

/* Account Info Forms */
.woocommerce-MyAccount-content form fieldset {
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}
.woocommerce-MyAccount-content form fieldset legend {
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0 0.5rem;
    color: #111827;
}

/* WooCommerce Account Notices */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error {
    background-color: #f8fafc;
    border-top: 3px solid #00337C;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    color: #1e293b;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.woocommerce-MyAccount-content .woocommerce-error {
    border-top-color: #ef4444;
}
.woocommerce-MyAccount-content .woocommerce-message .button,
.woocommerce-MyAccount-content .woocommerce-info .button,
.woocommerce-MyAccount-content .woocommerce-error .button {
    float: right;
    margin-left: 1rem;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

/* Pagination inside my account orders */
.woocommerce-pagination.woocommerce-pagination--without-numbers {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

/* Edit Address / Account Form Specifics */
.woocommerce-MyAccount-content form .form-row {
    margin-bottom: 1.25rem;
}
.woocommerce-MyAccount-content form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}
.woocommerce-MyAccount-content form input.input-text,
.woocommerce-MyAccount-content form textarea,
.woocommerce-MyAccount-content form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #111827;
    background-color: #fff;
}
.woocommerce-MyAccount-content form input.input-text:focus,
.woocommerce-MyAccount-content form textarea:focus {
    outline: none;
    border-color: #00337C;
    box-shadow: 0 0 0 3px rgba(0, 51, 124, 0.1);
}

/* --- FLOATING ISLAND CSS --- */
.woocommerce-message, .woocommerce-error, .woocommerce-info { display: none !important; }

/* Animation class for JS */
@keyframes slideUpIsland {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up-island {
    animation: slideUpIsland 0.2s ease-out forwards !important;
}

/* Hide Number Input Arrows */
.hide-arrows::-webkit-outer-spin-button,
.hide-arrows::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.hide-arrows {
  -moz-appearance: textfield;
}

/* Skrivanje WooCommerce search widgeta po zahtjevu klijenta */
.widget_product_search, .widget_search { display: none !important; }
/* Skrivanje defaultnih WordPress blog widgeta (Recent Posts, Recent Comments) po zahtjevu */
.widget_recent_entries, .widget_recent_comments, .widget_archive, .widget_categories, .widget_meta { display: none !important; }
.wp-block-latest-posts, .wp-block-latest-comments { display: none !important; }
/* Hides general widgets that start with wp-block-heading if they are adjacent to those, just covering general blocks if they use group */
.widget_block h2 { display: none !important; }
.widget_block .wp-block-latest-comments { display: none !important; }
.widget_block:has(.wp-block-latest-posts), .widget_block:has(.wp-block-latest-comments) { display: none !important; }

/* But wait, let's just make sure we only hide them in the shop sidebar */
#shop-sidebar-offcanvas .widget_block:has(.wp-block-latest-posts),
#shop-sidebar-offcanvas .widget_block:has(.wp-block-latest-comments),
#shop-sidebar-offcanvas .widget_recent_entries, 
#shop-sidebar-offcanvas .widget_recent_comments {
    display: none !important;
}


/* Fix My Account Desktop Layout Widths */
@media screen and (min-width: 768px) {
    .woocommerce-account .woocommerce {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        flex: 0 0 260px !important;
        width: 260px !important;
        float: none !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content {
        flex: 1;
        width: 100% !important;
        float: none !important;
    }
}


/* Fix Mobile Cart Product Name Visibility & Layout */
@media screen and (max-width: 768px) {
    /* Hide the default remove and thumbnail columns on mobile because we moved them inside product-name */
    .woocommerce table.shop_table_responsive tbody tr td.product-remove,
    .woocommerce-page table.shop_table_responsive tbody tr td.product-remove,
    .woocommerce table.shop_table_responsive tbody tr td.product-thumbnail,
    .woocommerce-page table.shop_table_responsive tbody tr td.product-thumbnail {
        display: none !important;
    }

    /* General layout for other cart cells on mobile */
    .woocommerce table.shop_table_responsive tbody tr td, 
    .woocommerce-page table.shop_table_responsive tbody tr td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        text-align: right !important;
        padding: 1rem !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }

    /* Flex direction for product name because it contains image/remove button inside */
    .woocommerce table.shop_table_responsive tbody tr td.product-name {
        flex-direction: column;
        align-items: flex-start;
        text-align: left !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Make the title link look good */
    .woocommerce table.shop_table_responsive tbody tr td.product-name a {
        display: inline-block;
        font-weight: 600;
        color: #00337C;
        text-decoration: none;
        font-size: 1.1rem;
    }

    /* Style the labels (e.g. CIJENA:, KOLIČINA:) */
    .woocommerce table.shop_table_responsive tbody tr td::before, 
    .woocommerce-page table.shop_table_responsive tbody tr td::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
        font-size: 0.75rem;
        margin-right: auto; /* Push value to the right */
        margin-top: 0 !important;
        float: none !important;
    }

    /* Hide the PROIZVOD: label because we already have the product visual card */
    .woocommerce table.shop_table_responsive tbody tr td.product-name::before {
        display: none !important;
    }

    /* Override any weird margins on ::before from Woo default */
    .woocommerce table.shop_table_responsive tbody tr td.product-quantity::before,
    .woocommerce table.shop_table_responsive tbody tr td.product-subtotal::before {
        float: none !important;
        margin-top: 0 !important;
    }
}

/* Style Contact Form 7 in kasa-cf7-wrapper to match Tailwind styling */
.kasa-cf7-wrapper .wpcf7-form-control.wpcf7-text,
.kasa-cf7-wrapper .wpcf7-form-control.wpcf7-email,
.kasa-cf7-wrapper .wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    color: #1f2937;
    transition: all 0.2s;
    margin-top: 0.5rem;
}
.kasa-cf7-wrapper .wpcf7-form-control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #00337C;
    box-shadow: 0 0 0 2px rgba(0, 51, 124, 0.2);
}
.kasa-cf7-wrapper .wpcf7-submit {
    padding: 1rem 2rem;
    background-color: #00337C;
    color: #ffffff;
    font-weight: 700;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}
.kasa-cf7-wrapper .wpcf7-submit:hover {
    background-color: #1e40af; /* blue-800 */
}
/* CF7 Form Labels / Naslovi polja */
.kasa-cf7-wrapper form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151; /* gray-700 */
    margin-bottom: 0.25rem;
}

/* CF7 Validation errors (pojedinačne greške ispod polja) */
.kasa-cf7-wrapper .wpcf7-not-valid-tip {
    color: #ef4444; /* red-500 */
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
}

/* CF7 Form Response Output (Glavno upozorenje na dnu/vrhu forme) */
.kasa-cf7-wrapper .wpcf7-response-output {
    border-radius: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent !important;
}

/* Uspješno poslano (Success state) */
.kasa-cf7-wrapper form.sent .wpcf7-response-output {
    background-color: #ecfdf5 !important; /* emerald-50 */
    border-color: #a7f3d0 !important; /* emerald-200 */
    color: #065f46 !important; /* emerald-900 */
}

/* Neuspješno poslano ili greška u validaciji (Error states) */
.kasa-cf7-wrapper form.invalid .wpcf7-response-output,
.kasa-cf7-wrapper form.failed .wpcf7-response-output,
.kasa-cf7-wrapper form.aborted .wpcf7-response-output {
    background-color: #fef2f2 !important; /* red-50 */
    border-color: #fecaca !important; /* red-200 */
    color: #991b1b !important; /* red-900 */
}

/* Spinner animacija CF7 (opcionalno čišćenje defaultnog stila) */
.kasa-cf7-wrapper .wpcf7-spinner {
    background-color: #00337C;
    margin-left: 1rem;
}
