/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ── Wing Tech Tab Table ─────────────────────── */
.winglocker-wing-tech-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.winglocker-wing-tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.winglocker-wing-tech-table th,
.winglocker-wing-tech-table td {
    padding: 10px 14px;
    text-align: center;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}

.winglocker-wing-tech-table thead th {
    background: #333;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.winglocker-wing-tech-table thead th:first-child {
    background: transparent;
    border-top-color: transparent;
    border-left-color: transparent;
}

.winglocker-wing-tech-table .winglocker-wt-label {
    text-align: left;
    font-weight: 600;
    background: #f7f7f7;
    white-space: nowrap;
}

.winglocker-wing-tech-table tbody tr:nth-child(even) td:not(.winglocker-wt-label) {
    background: #fafafa;
}

@media (max-width: 600px) {
    .winglocker-wing-tech-table {
        font-size: 12px;
    }
    .winglocker-wing-tech-table th,
    .winglocker-wing-tech-table td {
        padding: 7px 8px;
    }
}

/* ── Wing Colour Swatch Selector ─────────────── */
.wl-colour-swatches {
    margin: 18px 0 10px;
    padding: 0;
}

.wl-colour-swatches__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #000;
}

.wl-colour-swatches__title .required {
    color: #e53935;
}

.wl-colour-swatches__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wl-colour-swatch {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
    background: #fff !important;
    border: none !important;
    padding: 6px 4px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    outline: none !important;
    min-width: 52px !important;
    color: #000 !important;
    box-shadow: none !important;
    line-height: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: inherit !important;
}

.wl-colour-swatch:hover {
    background: #f5f5f5 !important;
    border: none !important;
    transform: scale(1.05);
}

.wl-colour-swatch:focus,
.wl-colour-swatch:active {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.wl-colour-swatch__dot {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.12);
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

/* Light colours (white, cloud, etc.) get a stronger border */
.wl-colour-swatch--light .wl-colour-swatch__dot {
    border-color: rgba(0,0,0,0.22);
}

.wl-colour-swatch__name {
    font-size: 11px;
    line-height: 1.2;
    color: #000;
    text-align: center;
    max-width: 64px;
    word-break: break-word;
}

/* ── Selected State ── */
.wl-colour-swatch--selected {
    background: #f0f0f0 !important;
    border: none !important;
}

.wl-colour-swatch--selected .wl-colour-swatch__dot {
    border-color: #333;
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

.wl-colour-swatch--selected .wl-colour-swatch__dot::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Dark check on light colours */
.wl-colour-swatch--light.wl-colour-swatch--selected .wl-colour-swatch__dot::after {
    color: #333;
    text-shadow: none;
}

.wl-colour-swatch--selected .wl-colour-swatch__name {
    color: #000;
    font-weight: 600;
}

/* ── Error Message ── */
.wl-colour-swatches__error {
    color: #e53935;
    font-size: 13px;
    margin: 8px 0 0;
    font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .wl-colour-swatch__dot {
        width: 34px;
        height: 34px;
    }
    .wl-colour-swatch__name {
        font-size: 10px;
    }
    .wl-colour-swatches__options {
        gap: 6px;
    }
}

/* ── Mini-cart View Basket button — white text ── */
.woocommerce-mini-cart__buttons .btn-cart.wc-forward {
    color: #fff !important;
}
