/**
 * EVKIS WooCommerce Styles
 * Pood, tootekaart, üksikvaade, ostukorv, kassa, minu konto
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --wc-primary: #0088B7;
    --wc-primary-dark: #006d93;
    --wc-primary-light: #e6f5fa;
    --wc-text: #111827;
    --wc-text-muted: #6b7280;
    --wc-border: #e5e7eb;
    --wc-bg: #f9fafb;
    --wc-white: #ffffff;
    --wc-success: #059669;
    --wc-danger: #dc2626;
    --wc-warning: #f59e0b;
    --wc-radius: 0.75rem;
    --wc-radius-sm: 0.375rem;
    --wc-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --wc-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --wc-container: 1280px;
}

/* ============================================================
   SHOP PAGE (ARCHIVE)
   ============================================================ */
/* Shop hero subtitle */
.evkis-page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0.5rem 0 0;
}

.evkis-shop-content {
    padding: 3rem 0 4rem;
    background: var(--wc-bg);
}

.evkis-shop-container {
    max-width: var(--wc-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Filters */
.evkis-shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.evkis-shop-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--wc-white);
    border: 1px solid var(--wc-border);
    border-radius: 2rem;
    color: var(--wc-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.evkis-shop-filter-btn:hover {
    border-color: var(--wc-primary);
    color: var(--wc-primary);
}

.evkis-shop-filter-btn.active {
    background: var(--wc-primary);
    border-color: var(--wc-primary);
    color: var(--wc-white);
}

.evkis-shop-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    background: rgba(0,0,0,0.08);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.evkis-shop-filter-btn.active .evkis-shop-filter-count {
    background: rgba(255,255,255,0.25);
}

/* Result bar */
.evkis-shop-result-bar {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--wc-text-muted);
}

.evkis-shop-result-bar .woocommerce-result-count {
    margin: 0;
}

/* Product Grid */
.evkis-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Pagination */
.evkis-shop-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.evkis-shop-pagination .woocommerce-pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.evkis-shop-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--wc-radius-sm);
    background: var(--wc-white);
    border: 1px solid var(--wc-border);
    color: var(--wc-text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.evkis-shop-pagination .page-numbers:hover,
.evkis-shop-pagination .page-numbers.current {
    background: var(--wc-primary);
    border-color: var(--wc-primary);
    color: var(--wc-white);
}

/* Empty state */
.evkis-shop-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--wc-text-muted);
}

.evkis-shop-empty svg {
    margin-bottom: 1rem;
    opacity: 0.4;
}

.evkis-shop-empty h2 {
    font-size: 1.5rem;
    color: var(--wc-text);
    margin-bottom: 0.5rem;
}

.evkis-shop-empty p {
    margin-bottom: 1.5rem;
}

.evkis-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background: var(--wc-primary);
    color: var(--wc-white);
    border-radius: var(--wc-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.evkis-btn-primary:hover {
    background: var(--wc-primary-dark);
    color: var(--wc-white);
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.evkis-product-card {
    background: var(--wc-white);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    overflow: hidden;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}

.evkis-product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.evkis-product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f4f6;
}

.evkis-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.evkis-product-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
}

/* Badges */
.evkis-product-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.evkis-product-card-badge--sale {
    background: var(--wc-danger);
    color: var(--wc-white);
}

.evkis-product-card-badge--soldout {
    background: #374151;
    color: var(--wc-white);
}

/* Card info */
.evkis-product-card-info {
    padding: 1rem 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.evkis-product-card-category {
    font-size: 0.75rem;
    color: var(--wc-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.evkis-product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wc-text);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    flex: 1;
}

.evkis-product-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wc-primary);
}

.evkis-product-card-price del {
    color: var(--wc-text-muted);
    font-weight: 400;
    font-size: 0.875rem;
}

.evkis-product-card-price ins {
    text-decoration: none;
    color: var(--wc-danger);
}

/* Card action */
.evkis-product-card-actions {
    padding: 0 1.25rem 1.25rem;
}

.evkis-product-card-actions .button,
.evkis-product-card-actions .add_to_cart_button,
.evkis-product-card-actions .ajax_add_to_cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--wc-primary) !important;
    color: var(--wc-white) !important;
    border: none;
    border-radius: var(--wc-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.evkis-product-card-actions .button:hover {
    background: var(--wc-primary-dark) !important;
}

/* Hide "View cart" link after add-to-cart */
.evkis-product-card-actions .added_to_cart {
    display: none !important;
}

/* ===== Toast teade ===== */
.evkis-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111827;
    color: #ffffff;
    padding: 0.875rem 1.5rem;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evkis-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.evkis-product-card-soldout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 1rem;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: var(--wc-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: default;
}

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.evkis-single-product-wrapper {
    padding: 3rem 0 4rem;
    padding-top: calc(var(--nav-height, 70px) + var(--admin-bar-height, 0px) + 3rem);
    background: var(--wc-white);
}

.evkis-single-product-container {
    max-width: var(--wc-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.evkis-single-product-back {
    margin-bottom: 2rem;
}

.evkis-single-product-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wc-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.evkis-single-product-back a:hover {
    color: var(--wc-primary);
}

/* Layout: 2 veergu */
.evkis-single-product-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Gallery */
.evkis-single-product-gallery {
    position: sticky;
    top: calc(var(--nav-height, 70px) + 1rem);
}

.evkis-single-product-main-image {
    position: relative;
    border-radius: var(--wc-radius);
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid var(--wc-border);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.evkis-single-product-main-image img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.evkis-single-product-thumbnails {
    display: flex;
    gap: 0.5rem;
}

.evkis-single-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.evkis-single-product-thumb.active,
.evkis-single-product-thumb:hover {
    border-color: var(--wc-primary);
}

.evkis-single-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evkis-single-product-no-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: var(--wc-radius);
    color: #d1d5db;
}

/* Product info */
.evkis-single-product-info {
    padding-top: 0.5rem;
}

.evkis-single-product-category {
    font-size: 0.75rem;
    color: var(--wc-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.evkis-single-product-category a {
    color: var(--wc-primary);
    text-decoration: none;
}

.evkis-single-product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wc-text);
    line-height: 1.35;
    margin: 0 0 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--wc-border);
}

.evkis-single-product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wc-primary);
    margin-bottom: 1.25rem;
}

.evkis-single-product-price del {
    font-size: 1.25rem;
    color: var(--wc-text-muted);
    font-weight: 400;
}

.evkis-single-product-price ins {
    text-decoration: none;
    color: var(--wc-danger);
}

/* Stock badge */
.evkis-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.evkis-stock-badge--instock {
    background: #ecfdf5;
    color: var(--wc-success);
}

.evkis-stock-badge--outofstock {
    background: #fef2f2;
    color: var(--wc-danger);
}

/* Excerpt */
.evkis-single-product-excerpt {
    margin-bottom: 1.5rem;
    color: var(--wc-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.evkis-single-product-excerpt p {
    margin: 0 0 0.75rem;
}

/* Add to cart */
.evkis-single-product-add-to-cart {
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--wc-border);
    border-bottom: 1px solid var(--wc-border);
}

.evkis-single-product-add-to-cart .quantity {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
}

.evkis-single-product-add-to-cart .quantity .qty {
    width: 4rem;
    height: 3rem;
    text-align: center;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius-sm);
    font-size: 1rem;
    font-weight: 600;
}

.evkis-single-product-add-to-cart .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.5rem;
    background: var(--wc-primary);
    color: var(--wc-white);
    border: none;
    border-radius: var(--wc-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.evkis-single-product-add-to-cart .single_add_to_cart_button:hover {
    background: var(--wc-primary-dark);
}

/* Meta */
.evkis-single-product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.evkis-single-product-meta-item {
    font-size: 0.85rem;
    color: var(--wc-text-muted);
}

.evkis-meta-label {
    font-weight: 600;
    color: var(--wc-text);
    margin-right: 0.5rem;
}

.evkis-single-product-meta a {
    color: var(--wc-primary);
    text-decoration: none;
}

/* Description */
.evkis-single-product-description {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--wc-border);
}

.evkis-single-product-description h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.evkis-single-product-description-content {
    color: var(--wc-text-muted);
    line-height: 1.8;
}

.evkis-single-product-description-content p {
    margin-bottom: 1rem;
}

/* Related */
.evkis-single-product-related {
    padding: 2rem 0;
    border-top: 1px solid var(--wc-border);
}

.evkis-single-product-related h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.evkis-products-grid--related {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================================
   CART
   ============================================================ */
.evkis-cart-wrapper {
    padding: 2rem 0 4rem;
    background: var(--wc-bg);
    min-height: 60vh;
}

.evkis-cart-container {
    max-width: var(--wc-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.evkis-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.evkis-cart-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.evkis-cart-title svg {
    color: var(--wc-primary);
}

.evkis-cart-continue {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--wc-primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.evkis-cart-continue:hover {
    opacity: 0.8;
}

/* Cart grid: items + summary */
.evkis-cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Cart items */
.evkis-cart-items {
    background: var(--wc-white);
    border-radius: var(--wc-radius);
    border: 1px solid var(--wc-border);
    overflow: hidden;
}

.evkis-cart-items-list {
    padding: 0;
}

.evkis-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--wc-border);
}

.evkis-cart-item:last-child {
    border-bottom: none;
}

.evkis-cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f3f4f6;
}

.evkis-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evkis-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.evkis-cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.evkis-cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--wc-text);
}

.evkis-cart-item-name a {
    color: var(--wc-text);
    text-decoration: none;
}

.evkis-cart-item-name a:hover {
    color: var(--wc-primary);
}

.evkis-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fef2f2;
    color: var(--wc-danger);
    transition: all 0.2s;
    flex-shrink: 0;
}

.evkis-remove-btn:hover {
    background: var(--wc-danger);
    color: var(--wc-white);
}

.evkis-cart-item-bottom {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.evkis-cart-item-price {
    font-size: 0.9rem;
    color: var(--wc-text-muted);
}

.evkis-cart-item-quantity .quantity .qty {
    width: 3.5rem;
    height: 2.25rem;
    text-align: center;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius-sm);
    font-size: 0.875rem;
}

.evkis-cart-item-subtotal {
    font-weight: 700;
    color: var(--wc-primary);
    margin-left: auto;
}

/* Cart actions */
.evkis-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--wc-bg);
    border-top: 1px solid var(--wc-border);
}

.evkis-cart-coupon {
    display: flex;
    gap: 0.5rem;
}

.evkis-coupon-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius-sm);
    font-size: 0.875rem;
    width: 160px;
}

.evkis-coupon-btn {
    padding: 0.5rem 1rem;
    background: var(--wc-text);
    color: var(--wc-white);
    border: none;
    border-radius: var(--wc-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.evkis-coupon-btn:hover {
    opacity: 0.8;
}

.evkis-cart-update-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius-sm);
    color: var(--wc-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.evkis-cart-update-btn:hover {
    border-color: var(--wc-primary);
    color: var(--wc-primary);
}

/* Cart summary / collaterals */
.evkis-cart-summary {
    position: sticky;
    top: calc(var(--nav-height, 70px) + 1rem);
}

.evkis-cart-summary .cart-collaterals {
    background: var(--wc-white);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    padding: 1.5rem;
}

.evkis-cart-summary .cart_totals h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.evkis-cart-summary .shop_table {
    width: 100%;
    border: none !important;
}

.evkis-cart-summary .shop_table th,
.evkis-cart-summary .shop_table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--wc-border);
    font-size: 0.9rem;
}

.evkis-cart-summary .order-total th,
.evkis-cart-summary .order-total td {
    font-size: 1.125rem;
    font-weight: 700;
    border-bottom: none;
    padding-top: 1rem;
}

.evkis-cart-summary .order-total .amount {
    color: var(--wc-primary);
}

.evkis-cart-summary .wc-proceed-to-checkout .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem;
    background: var(--wc-primary) !important;
    color: var(--wc-white) !important;
    border: none;
    border-radius: var(--wc-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.2s;
}

.evkis-cart-summary .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--wc-primary-dark) !important;
}

/* ============================================================
   KASSA (CHECKOUT) – kassa.html disain
   ============================================================ */

/* — Hero — */
.evkis-kassa-hero {
    padding: 3rem 1.5rem;
    padding-top: calc(var(--nav-height, 70px) + var(--admin-bar-height, 0px) + 3rem);
    background: linear-gradient(135deg, #0088B7 0%, #006d93 100%);
    text-align: center;
}

.evkis-kassa-hero-container {
    max-width: 1280px;
    margin: 0 auto;
}

.evkis-kassa-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

.evkis-kassa-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.evkis-kassa-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.evkis-kassa-hero-breadcrumb a:hover {
    color: #ffffff;
}

.evkis-kassa-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.4);
}

.evkis-kassa-breadcrumb-current {
    color: #ffffff;
    font-weight: 500;
}

/* — Steps — */
.evkis-kassa-steps {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
}

.evkis-kassa-steps-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evkis-kassa-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
}

.evkis-kassa-step.active {
    color: var(--wc-primary);
}

.evkis-kassa-step.completed {
    color: #10b981;
}

.evkis-kassa-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.evkis-kassa-step-number svg {
    width: 14px;
    height: 14px;
}

.evkis-kassa-step.active .evkis-kassa-step-number {
    background: var(--wc-primary);
    color: #ffffff;
}

.evkis-kassa-step.completed .evkis-kassa-step-number {
    background: #10b981;
    color: #ffffff;
}

.evkis-kassa-step:not(.active):not(.completed) .evkis-kassa-step-number {
    background: #e5e7eb;
    color: #9ca3af;
}

.evkis-kassa-step-divider {
    width: 60px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 1rem;
}

.evkis-kassa-step-divider.done {
    background: #10b981;
}

/* — Content — */
.evkis-kassa-content {
    padding: 2.5rem 0 4rem;
    background: #f9fafb;
    min-height: 60vh;
}

.evkis-kassa-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* — Sections — */
.evkis-kassa-section {
    margin-bottom: 2rem;
}

.evkis-kassa-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.evkis-kassa-section-header .evkis-kassa-section-title {
    margin-bottom: 0;
}

.evkis-kassa-section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.evkis-kassa-section-title svg {
    width: 22px;
    height: 22px;
    color: var(--wc-primary);
    flex-shrink: 0;
}

.evkis-kassa-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--wc-primary);
    text-decoration: none;
    font-weight: 500;
}

.evkis-kassa-continue-link:hover {
    text-decoration: underline;
}

.evkis-kassa-continue-link svg {
    width: 16px;
    height: 16px;
}

/* — Cart Card — */
.evkis-kassa-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Cart header row */
.evkis-kassa-cart-header {
    display: grid;
    grid-template-columns: 3fr 100px 120px 100px 32px;
    gap: 1rem;
    align-items: center;
    padding: 0.875rem 1.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.evkis-kassa-cart-header > span:nth-child(2),
.evkis-kassa-cart-header > span:nth-child(3),
.evkis-kassa-cart-header > span:nth-child(4) {
    text-align: center;
}

/* Cart item row */
.evkis-kassa-cart-item {
    display: grid;
    grid-template-columns: 3fr 100px 120px 100px 32px;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.evkis-kassa-cart-item:last-of-type {
    border-bottom: none;
}

.evkis-kassa-cart-item:hover {
    background: #fafbfc;
}

/* Product cell */
.evkis-kassa-cart-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.evkis-kassa-cart-img {
    width: 64px;
    height: 64px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 136, 183, 0.15) 0%, rgba(0, 136, 183, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.evkis-kassa-cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.evkis-kassa-cart-img svg {
    width: 28px;
    height: 28px;
    color: var(--wc-primary);
}

.evkis-kassa-cart-product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem;
}

.evkis-kassa-cart-product-sku {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
}

/* Price */
.evkis-kassa-cart-price {
    font-size: 0.9375rem;
    color: #6b7280;
    text-align: center;
}

/* Quantity */
.evkis-kassa-cart-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.evkis-kassa-cart-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 1rem;
    color: #6b7280;
    transition: all 0.15s;
}

.evkis-kassa-cart-qty-btn:first-child {
    border-radius: 0.375rem 0 0 0.375rem;
}

.evkis-kassa-cart-qty-btn:last-child {
    border-radius: 0 0.375rem 0.375rem 0;
}

.evkis-kassa-cart-qty-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.evkis-kassa-cart-qty-value {
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

/* Row total */
.evkis-kassa-cart-total {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--wc-primary);
    text-align: center;
}

/* Remove button */
.evkis-kassa-cart-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.15s;
}

.evkis-kassa-cart-remove:hover {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fecaca;
}

.evkis-kassa-cart-remove svg {
    width: 18px;
    height: 18px;
}

/* — Coupon — */
.evkis-kassa-coupon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.evkis-kassa-coupon-input {
    flex: 1;
    max-width: 280px;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.15s;
}

.evkis-kassa-coupon-input::placeholder {
    color: #9ca3af;
}

.evkis-kassa-coupon-input:focus {
    outline: none;
    border-color: var(--wc-primary);
    box-shadow: 0 0 0 3px rgba(0, 136, 183, 0.1);
}

.evkis-kassa-coupon-btn {
    padding: 0.625rem 1.25rem;
    background: var(--wc-primary);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.evkis-kassa-coupon-btn:hover {
    background: var(--wc-primary-dark);
}

/* Kupongi tagasiside teated */
.evkis-kassa-coupon {
    flex-wrap: wrap;
}

.evkis-kassa-coupon-msg {
    width: 100%;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.25rem 0;
}

.evkis-kassa-coupon-error {
    color: #ef4444;
}

.evkis-kassa-coupon-success {
    color: #10b981;
}

/* — 2-column layout — */
.evkis-kassa-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* — Billing form — */
.evkis-kassa-billing-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
}

.evkis-kassa-billing-tab {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.evkis-kassa-billing-tab:first-child {
    border-radius: 0.5rem 0 0 0.5rem;
}

.evkis-kassa-billing-tab:last-child {
    border-radius: 0 0.5rem 0.5rem 0;
}

.evkis-kassa-billing-tab.active {
    background: var(--wc-primary);
    color: #ffffff;
    border-color: var(--wc-primary);
}

/* Checkout form fields */
.woocommerce-checkout .form-row {
    margin-bottom: 1.25rem;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.woocommerce-checkout .form-row label .required {
    color: #ef4444;
    margin-left: 2px;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    outline: none;
    border-color: var(--wc-primary);
    box-shadow: 0 0 0 3px rgba(0, 136, 183, 0.1);
}

/* Billing fields wrapper – flexbox rida */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4%;
}

.woocommerce-checkout .form-row-wide {
    width: 100%;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 48%;
    flex: 0 0 48%;
}

.woocommerce-checkout .form-row-first {
    margin-right: 0;
}

/* — Order Summary card — */
.evkis-kassa-summary {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0;
    position: sticky;
    top: calc(var(--nav-height, 70px) + var(--admin-bar-height, 0px) + 1rem);
}

.evkis-kassa-summary-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.evkis-kassa-summary-header svg {
    width: 20px;
    height: 20px;
    color: var(--wc-primary);
}

.evkis-kassa-summary-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.evkis-kassa-summary-body {
    padding: 1.5rem;
}

/* Summary products table */
.evkis-kassa-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.evkis-kassa-summary-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.evkis-kassa-summary-table th:last-child {
    text-align: right;
}

.evkis-kassa-summary-table td {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.evkis-kassa-summary-table td:last-child {
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
}

.evkis-kassa-summary-qty {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}

/* Summary totals */
.evkis-kassa-summary-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0.5rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.evkis-kassa-summary-subtotal span:last-child {
    font-weight: 600;
    color: #374151;
}

.evkis-kassa-summary-coupon span a {
    color: #ef4444;
    text-decoration: none;
    margin-left: 0.25rem;
    font-size: 0.85rem;
}

.evkis-kassa-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    border-top: 2px solid #e5e7eb;
}

.evkis-kassa-summary-total-label {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.evkis-kassa-summary-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wc-primary);
}

/* Payment notice */
.evkis-kassa-summary-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid rgba(0, 136, 183, 0.15);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.evkis-kassa-summary-notice svg {
    flex-shrink: 0;
    color: #0088B7;
    margin-top: 1px;
}

/* Privacy text */
.evkis-kassa-summary-privacy {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.evkis-kassa-summary-privacy a {
    color: var(--wc-primary);
    text-decoration: none;
}

.evkis-kassa-summary-privacy a:hover {
    text-decoration: underline;
}

/* Payment methods */
.evkis-kassa-payment {
    margin-top: 0;
}

.evkis-kassa-payment .wc_payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem 0 0 !important;
    border: none !important;
}

.evkis-kassa-payment .wc_payment_method,
.woocommerce-checkout #payment ul.payment_methods li {
    padding: 1.125rem 1.25rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    margin-bottom: 1rem !important;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s !important;
    background: #ffffff !important;
    list-style: none !important;
}

.evkis-kassa-payment .wc_payment_method:has(input:checked),
.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
    border-color: #0088B7 !important;
    background: #f0f9ff !important;
    box-shadow: 0 0 0 1px #0088B7 !important;
}

.evkis-kassa-payment .wc_payment_method input[type="radio"],
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    accent-color: #0088B7 !important;
    margin-right: 0.5rem !important;
    width: 18px !important;
    height: 18px !important;
    vertical-align: middle !important;
}

.evkis-kassa-payment .wc_payment_method label,
.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    color: #111827 !important;
    vertical-align: middle !important;
}

.evkis-kassa-payment .wc_payment_method .payment_box,
.woocommerce-checkout #payment ul.payment_methods li .payment_box {
    padding: 1rem !important;
    margin-top: 0.75rem !important;
    font-size: 0.875rem !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
}

/* Peida WooCommerce "no payment methods" teade – meie notice katab seda */
.evkis-kassa-payment .woocommerce-info {
    display: none;
}

/* Peida WooCommerce privacy policy topelttekst */
.evkis-kassa-payment .woocommerce-terms-and-conditions-wrapper {
    display: none;
}

/* Order button – kõrge spetsiifilisus, et WooCommerce AJAX ei kirjutaks üle */
.evkis-kassa-order-btn,
.woocommerce #payment #place_order,
.woocommerce-checkout #place_order,
#order_review #place_order,
#order_review .evkis-kassa-order-btn,
button#place_order {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.625rem !important;
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    margin-top: 1.25rem !important;
    background: linear-gradient(135deg, #0088B7 0%, #006d93 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.625rem !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s !important;
    box-shadow: 0 4px 12px -2px rgba(0, 136, 183, 0.35) !important;
    letter-spacing: 0.02em !important;
    line-height: 1.4 !important;
    float: none !important;
}

.evkis-kassa-order-btn:hover,
.woocommerce #payment #place_order:hover,
.woocommerce-checkout #place_order:hover,
button#place_order:hover {
    background: linear-gradient(135deg, #006d93 0%, #005a7a 100%) !important;
    box-shadow: 0 6px 16px -2px rgba(0, 136, 183, 0.5) !important;
    transform: none !important;
}

.evkis-kassa-order-btn:active,
button#place_order:active {
    transform: none !important;
    box-shadow: 0 2px 6px -1px rgba(0, 136, 183, 0.3) !important;
}

.evkis-kassa-order-btn svg,
#place_order svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

/* Secure badge */
.evkis-kassa-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

.evkis-kassa-secure svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* Login notice */
.evkis-kassa-login-notice {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--wc-white);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    text-align: center;
    color: var(--wc-text);
}

/* Hide default WC coupon toggle (we have our own) */
.woocommerce-form-coupon-toggle,
.checkout_coupon.woocommerce-form-coupon {
    display: none !important;
}

/* WC checkout terms */
.evkis-kassa-summary-body .woocommerce-terms-and-conditions-wrapper {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.evkis-kassa-summary-body .woocommerce-terms-and-conditions-wrapper a {
    color: var(--wc-primary);
}

/* Place order row */
.evkis-kassa-summary-body .form-row.place-order {
    margin: 0;
    padding: 0;
}

/* ============================================================
   MY ACCOUNT
   ============================================================ */
.woocommerce-account .evkis-main {
    background: var(--wc-bg);
}

.woocommerce-account .woocommerce {
    max-width: var(--wc-container);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Layout: sidebar + main */
.evkis-myaccount-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.evkis-myaccount-sidebar {
    position: sticky;
    top: calc(var(--nav-height, 70px) + 1rem);
}

/* User card */
.evkis-myaccount-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--wc-white);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    margin-bottom: 0.75rem;
}

.evkis-myaccount-avatar {
    flex-shrink: 0;
}

.evkis-myaccount-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.evkis-myaccount-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.evkis-myaccount-user-info strong {
    font-size: 0.95rem;
    color: var(--wc-text);
}

.evkis-myaccount-user-info span {
    font-size: 0.8rem;
    color: var(--wc-text-muted);
}

/* Nav */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    background: var(--wc-white);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--wc-border);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: var(--wc-text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--wc-primary);
    color: var(--wc-white);
}

/* Main content */
.evkis-myaccount-main {
    background: var(--wc-white);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    padding: 1.5rem 2rem;
    min-height: 300px;
}

.evkis-myaccount-main p {
    margin-bottom: 1rem;
}

/* Orders table */
.woocommerce-account .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-account .woocommerce-orders-table th {
    background: var(--wc-bg);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wc-text-muted);
    text-align: left;
}

.woocommerce-account .woocommerce-orders-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--wc-border);
    font-size: 0.9rem;
}

.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    background: var(--wc-primary);
    color: var(--wc-white);
    border-radius: var(--wc-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.25rem;
}

.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button:hover {
    background: var(--wc-primary-dark);
}

/* Login/register form */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
    background: var(--wc-white);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    padding: 2rem;
    max-width: 480px;
    margin: 0 auto;
}

.woocommerce-account .woocommerce-form-login h2,
.woocommerce-account .woocommerce-form-register h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.woocommerce-account .woocommerce-form-login .form-row label,
.woocommerce-account .woocommerce-form-register .form-row label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.woocommerce-account .woocommerce-form-login .form-row input.input-text,
.woocommerce-account .woocommerce-form-register .form-row input.input-text {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius-sm);
    font-size: 0.9rem;
}

.woocommerce-account .woocommerce-form-login .form-row input.input-text:focus,
.woocommerce-account .woocommerce-form-register .form-row input.input-text:focus {
    outline: none;
    border-color: var(--wc-primary);
    box-shadow: 0 0 0 3px rgba(0, 136, 183, 0.1);
}

.woocommerce-account .woocommerce-form-login .woocommerce-button,
.woocommerce-account .woocommerce-form-register .woocommerce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: var(--wc-primary) !important;
    color: var(--wc-white) !important;
    border: none;
    border-radius: var(--wc-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.woocommerce-account .woocommerce-form-login .woocommerce-button:hover,
.woocommerce-account .woocommerce-form-register .woocommerce-button:hover {
    background: var(--wc-primary-dark) !important;
}

/* Edit account form */
.woocommerce-EditAccountForm fieldset {
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    padding: 1.25rem;
    margin: 1rem 0;
}

.woocommerce-EditAccountForm fieldset legend {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 0.5rem;
}

.woocommerce-EditAccountForm .form-row input.input-text {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius-sm);
    font-size: 0.9rem;
}

.woocommerce-EditAccountForm .woocommerce-Button {
    display: inline-flex;
    padding: 0.75rem 2rem;
    background: var(--wc-primary) !important;
    color: var(--wc-white) !important;
    border: none;
    border-radius: var(--wc-radius-sm);
    font-weight: 600;
    cursor: pointer;
}

/* ============================================================
   NOTICES
   ============================================================ */

/* Notice wrappers – constrain to content width + top spacing */
.evkis-kassa-form > .woocommerce-NoticeGroup,
.evkis-kassa-content .woocommerce-notices-wrapper {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1.5rem 0;
}

/* Info / success base */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    color: #166534;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.woocommerce-notices-wrapper .woocommerce-info {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0c4a6e;
}

/* Error list – reset */
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-error,
.woocommerce .woocommerce-error {
    list-style: none !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Error items – card style */
.woocommerce-notices-wrapper .woocommerce-error li,
.woocommerce-NoticeGroup .woocommerce-error li,
.woocommerce .woocommerce-error li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.woocommerce-notices-wrapper .woocommerce-error li:last-child,
.woocommerce-NoticeGroup .woocommerce-error li:last-child,
.woocommerce .woocommerce-error li:last-child {
    margin-bottom: 0;
}

/* Error icon */
.woocommerce-notices-wrapper .woocommerce-error li::before,
.woocommerce-NoticeGroup .woocommerce-error li::before,
.woocommerce .woocommerce-error li::before {
    content: "";
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.0625rem;
    background: #ef4444;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='8' x2='12' y2='13'/%3E%3Ccircle cx='12' cy='16.5' r='0.5' fill='white'/%3E%3C/svg%3E");
    background-size: 1rem;
    background-repeat: no-repeat;
    background-position: center;
}

/* Success message button */
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button {
    margin-left: auto;
    padding: 0.375rem 1rem;
    background: var(--wc-primary) !important;
    color: var(--wc-white) !important;
    border-radius: var(--wc-radius-sm);
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
}

/* ============================================================
   EVENT SHORTCODES (past_events, upcoming_events)
   ============================================================ */
.wd-month { margin: 2rem 0; }
.wd-month-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.75rem; }

.wd-event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #eee; }
.wd-event {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.wd-event-date { font-weight: 600; opacity: .8; }
.wd-event-title { text-decoration: none; color: var(--wc-text); }
.wd-event-title:hover { text-decoration: underline; }
.wd-event-cost { white-space: nowrap; opacity: .9; font-weight: 600; }

@media (max-width: 640px) {
    .wd-event {
        grid-template-columns: 80px 1fr;
        grid-template-areas: "date title" "cost cost";
    }
    .wd-event-date { grid-area: date; }
    .wd-event-title { grid-area: title; }
    .wd-event-cost { grid-area: cost; margin-top: 4px; }
}

/* ============================================================
   TRIBE EVENTS OVERRIDES
   ============================================================ */
.tribe-events-header,
.tribe-events-c-subscribe-dropdown,
.tribe-events-c-subscribe-dropdown__container,
.tribe-events-nav,
.tribe-events-c-nav { display: none !important; }

.tribe-events-back { display: none !important; }

.tribe-events-related-events,
.tribe-events-related,
.tribe-related-events.tribe-clearfix,
.tribe-events-related-events-title { display: none !important; }

.tribe-events-event-categories-label,
.tribe-events-event-categories { display: none; }

#tribe-events-pg-template { max-width: 100% !important; }

/* ============================================================
   WC GLOBAL NUPUD – BRÄNDIVÄRV
   ============================================================ */
.woocommerce-js a.button,
.woocommerce button.button {
    background-color: var(--wc-primary) !important;
    color: var(--wc-white) !important;
}

.woocommerce-js a.button:hover,
.woocommerce button.button:hover {
    background-color: var(--wc-primary-dark) !important;
}

/* ============================================================
   CHECKOUT – ERAISIK/ETTEVÕTE
   ============================================================ */
#billing_country,
#billing_country_field { display: none !important; }

/* Hide duplicate billing heading – already shown as .evkis-kassa-section-title */
.woocommerce-billing-fields > h3 {
    display: none;
}

/* Customer type toggle */
#customer_type_field {
    margin-top: 0.5rem;
}

#customer_type_field .woocommerce-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

#customer_type_field input[type="radio"] {
    position: absolute !important;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

#customer_type_field input[type="radio"] + label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .625rem 1.5rem;
    border: 1px solid var(--wc-border);
    background: var(--wc-white);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: all .18s ease;
    margin: 0;
    border-radius: 0 !important;
}

#customer_type_field input[value="company"] + label {
    border-left-width: 0;
}

#customer_type_field input[type="radio"]:checked + label {
    background: var(--wc-primary) !important;
    color: var(--wc-white) !important;
    border-color: var(--wc-primary);
}

#customer_type_field > label { display: none !important; }
#customer_type_field .required { display: none !important; }

#billing_company_field,
#billing_registry_code_field { display: none; }

#billing_registry_code_field,
#billing_invoice_email_field { align-items: flex-end; }

@media (max-width: 480px) {
    #customer_type_field .woocommerce-input-wrapper {
        gap: .5rem;
        flex-wrap: wrap;
    }
}

/* Tribe checkout backlinks – peidame, kuna link on nüüd toote juures */
body.woocommerce-checkout .tribe-checkout-backlinks {
    display: none !important;
}

.evkis-name { font-size: 14px !important; }

/* ============================================================
   TRIBE TICKETS NUPUD (styles moved to style.css)
   ============================================================ */

/* ============================================================
   TRIBE ATTENDEES PEITMISED
   ============================================================ */
.tec-tickets__attendees-list { display: none !important; }
.tribe-common-h4.tribe-common-h--alt { display: none !important; }
.tribe-attendee-meta tr:last-child { display: none !important; }
.tribe-link-view-attendee { display: none !important; }

/* ============================================================
   MISC WC OVERRIDES
   ============================================================ */
/* Hide WC default ordering dropdown */
.woocommerce .woocommerce-ordering { display: none !important; }

/* Show result count in archive */
.evkis-shop-result-bar .woocommerce-result-count {
    display: block !important;
}

.woocommerce-product-details__short-description h4 {
    color: black !important;
    text-transform: none !important;
}

.woocommerce-breadcrumb { display: none !important; }
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title { display: none; }

.woocommerce-page.woocommerce-checkout table.shop_table td { padding: 10px !important; }
.woocommerce-page.woocommerce-checkout form #order_review td.product-name { align-items: baseline !important; }

.woocommerce-account #primary {
    margin-bottom: 30px !important;
    margin-top: 30px !important;
}

/* Footer widgets */
.tribe-events-widget .tribe-events-widget-events-list__view-more { display: none !important; }
.tribe-events-widget-events-list__header { display: none !important; }
.footer-widget-area .tribe-common .tribe-common-b2 { color: white !important; }
.footer-widget-area .tribe-events-widget-events-list__event-title a { color: white !important; }
.tribe-events-widget .tribe-events-widget-events-list__event-date-tag-month { color: white !important; }
.widget-title { text-align: left !important; }
.wd-mini-events { text-align: left !important; }

/* Thank You page */
.woocommerce-order .shop_table tr { padding: 2px 0 !important; }
.woocommerce-order .shop_table td,
.woocommerce-order .shop_table th { padding: 3px 6px !important; line-height: 1.2 !important; }
.woocommerce-order .shop_table { border-spacing: 0 !important; border-collapse: collapse !important; }
.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot:first-of-type {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .evkis-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .evkis-products-grid--related {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .evkis-single-product-layout {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
    
    .evkis-cart-grid {
        grid-template-columns: 1fr;
    }
    
    .evkis-cart-summary {
        position: static;
    }
}

@media (max-width: 900px) {
    .evkis-kassa-layout {
        grid-template-columns: 1fr;
    }
    
    .evkis-kassa-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .evkis-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .evkis-products-grid--related {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .evkis-single-product-layout {
        grid-template-columns: 1fr;
    }
    
    .evkis-single-product-gallery {
        position: static;
    }
    
    .evkis-cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .evkis-cart-actions {
        flex-direction: column;
    }
    
    .evkis-cart-item-bottom {
        flex-wrap: wrap;
    }
    
    .evkis-myaccount-layout {
        grid-template-columns: 1fr;
    }
    
    .evkis-myaccount-sidebar {
        position: static;
    }
    
    .evkis-myaccount-main {
        padding: 1.25rem;
    }
    
    /* Kassa responsive */
    .evkis-kassa-hero h1 {
        font-size: 2rem;
    }

    /* Ostukorvi horisontaalne scroll mobiilis */
    .evkis-kassa-cart-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .evkis-kassa-cart-header,
    .evkis-kassa-cart-item {
        min-width: 600px;
    }


    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100%;
        display: block;
        margin-right: 0;
    }

    .evkis-kassa-steps-container {
        gap: 0;
    }

    .evkis-kassa-step-label {
        display: none;
    }

    .evkis-kassa-step-divider {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .evkis-products-grid {
        grid-template-columns: 1fr;
    }
    
    .evkis-products-grid--related {
        grid-template-columns: 1fr;
    }
    
    .evkis-shop-filters {
        flex-direction: column;
    }
    
    .evkis-shop-filter-btn {
        justify-content: center;
    }
    
    /* Kassa responsive */
    .evkis-kassa-content {
        padding: 1.5rem 0 3rem;
    }

    .evkis-kassa-coupon {
        flex-direction: column;
        align-items: stretch;
    }

    .evkis-kassa-coupon-input {
        max-width: 100%;
    }
}

/* ========================================
   THANKYOU PAGE
   ======================================== */

.evkis-thankyou {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Success / Failed header */
.evkis-thankyou-success,
.evkis-thankyou-failed {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

.evkis-thankyou-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.evkis-thankyou-icon svg {
    width: 40px;
    height: 40px;
}

.evkis-thankyou-icon--success {
    background: rgba(0, 136, 183, 0.1);
    color: #0088B7;
}

.evkis-thankyou-icon--error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.evkis-thankyou-success h2,
.evkis-thankyou-failed h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem;
}

.evkis-thankyou-success p,
.evkis-thankyou-failed p {
    font-size: 1.0625rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards grid */
.evkis-thankyou-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.evkis-thankyou-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.evkis-thankyou-card-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
}

.evkis-thankyou-card-title svg {
    width: 20px;
    height: 20px;
    color: #0088B7;
    flex-shrink: 0;
}

.evkis-thankyou-card-body {
    padding: 1.5rem;
}

/* Detail rows */
.evkis-thankyou-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.evkis-thankyou-detail:last-child {
    border-bottom: none;
}

.evkis-thankyou-detail-label {
    font-size: 0.9375rem;
    color: #6b7280;
}

.evkis-thankyou-detail-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
}

.evkis-thankyou-detail-value--total {
    font-size: 1.125rem;
    color: #0088B7;
    font-weight: 700;
}

/* Items table */
.evkis-thankyou-items {
    width: 100%;
    border-collapse: collapse;
}

.evkis-thankyou-items th {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.evkis-thankyou-items th:last-child,
.evkis-thankyou-items td:last-child {
    text-align: right;
}

.evkis-thankyou-items th:nth-child(2),
.evkis-thankyou-items td:nth-child(2) {
    text-align: center;
}

.evkis-thankyou-items td {
    font-size: 0.9375rem;
    color: #374151;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.evkis-thankyou-items-total td {
    font-weight: 700;
    color: #111827;
    border-bottom: none;
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
}

.evkis-thankyou-items-total td:last-child {
    color: #0088B7;
    font-size: 1.125rem;
}

/* Action buttons */
.evkis-thankyou-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

.evkis-thankyou-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.evkis-thankyou-btn--primary {
    background: #0088B7;
    color: #ffffff;
}

.evkis-thankyou-btn--primary:hover {
    background: #006d93;
    color: #ffffff;
}

.evkis-thankyou-btn--secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.evkis-thankyou-btn--secondary:hover {
    border-color: #0088B7;
    color: #0088B7;
}

/* Bank details (BACS) section */
.evkis-thankyou .woocommerce-bacs-bank-details {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.evkis-thankyou .wc-bacs-bank-details-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
}

.evkis-thankyou .wc-bacs-bank-details-account-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    padding: 1.25rem 1.5rem 0;
    text-transform: none;
}

.evkis-thankyou .woocommerce-bacs-bank-details ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1.5rem 1.5rem;
}

.evkis-thankyou .woocommerce-bacs-bank-details ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9375rem;
    color: #6b7280;
}

.evkis-thankyou .woocommerce-bacs-bank-details ul li:last-child {
    border-bottom: none;
}

.evkis-thankyou .woocommerce-bacs-bank-details ul li strong {
    font-weight: 600;
    color: #111827;
}

/* WooCommerce order details section */
.evkis-thankyou .woocommerce-order-details {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.evkis-thankyou .woocommerce-order-details h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
}

.evkis-thankyou .woocommerce-order-details table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.evkis-thankyou .woocommerce-order-details table th,
.evkis-thankyou .woocommerce-order-details table td {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f3f4f6;
}

.evkis-thankyou .woocommerce-order-details table th {
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    background: #fafbfc;
}

.evkis-thankyou .woocommerce-order-details table td {
    color: #374151;
}

.evkis-thankyou .woocommerce-order-details table tfoot td {
    font-weight: 700;
    color: #111827;
}

/* Billing/Shipping cards on thankyou */
.evkis-thankyou-billing-card,
.evkis-thankyou-shipping-card {
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .evkis-thankyou-grid {
        grid-template-columns: 1fr;
    }

    .evkis-thankyou-success,
    .evkis-thankyou-failed {
        padding: 2rem 1rem 1.5rem;
    }

    .evkis-thankyou-success h2,
    .evkis-thankyou-failed h2 {
        font-size: 1.5rem;
    }

    .evkis-thankyou-actions {
        flex-direction: column;
        align-items: center;
    }

    .evkis-thankyou-btn {
        width: 100%;
        justify-content: center;
    }

    .evkis-thankyou .woocommerce-bacs-bank-details ul {
        padding: 1rem;
    }

    .evkis-thankyou .woocommerce-bacs-bank-details ul li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
