.custom-swatch-wrapper {
    font-family: Arial, sans-serif;
    max-width: 650px;
}

.swatch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 13px;
    flex-wrap: wrap;
}

.swatch-label {
    color: #111;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.size-guide-link {
    color: #581832;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    white-space: nowrap;
}

.size-guide-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.size-guide-link:hover,
.size-guide-link:focus {
    color: #581832;
    text-decoration: underline;
}

/* Swatches */
.swatch-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.swatch-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.swatch-btn {
    background: #fff;
    border: 1px solid #e0d0c8;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    min-width: 52px;
}

.swatch-btn.selected {
    background-color: #581832;
    color: #fff;
    border-color: #581832;
}

.swatch-btn.disabled,
.swatch-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #fff;
    color: #9a9a9a;
    border-color: #e6e6e6;
    text-decoration: line-through;
    box-shadow: none;
}

/* Action Buttons */
.action-buttons-group {
    display: flex;
    gap: 12px;
}

.btn-cod-buy {
    flex: 2;
    background-color: #581832;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-add-to-bag {
    flex: 1;
    background-color: #fff;
    color: #581832;
    border: 1px solid #581832;
    border-radius: 25px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.btn-cod-buy:disabled,
.btn-add-to-bag:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 767px) {
    .swatch-header {
        align-items: flex-start;
    }

    .action-buttons-group {
        flex-direction: column;
    }

    .btn-cod-buy,
    .btn-add-to-bag {
        width: 100%;
        flex: none;
    }
}
