.adv-atc-container-843b4da9 {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.adv-atc-form {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Actions styling */
.adv-atc-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 15px;
    z-index: 2;
}

/* Variations styling */
.adv-atc-variations {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 -8px 24 rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.25s;
}

.adv-atc-container-843b4da9.variations-open .adv-atc-variations {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.adv-atc-attribute {
    margin-bottom: 12px;
}

.adv-atc-attribute:last-child {
    margin-bottom: 0;
}

.adv-atc-attr-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    color: #666;
}

.adv-atc-attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.adv-atc-radio-btn input {
    display: none;
}

.adv-atc-radio-btn span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease-in-out;
    background: #fff;
    user-select: none;
}

.adv-atc-radio-btn input:checked + span {
    border-color: #333;
    background: #f9f9f9;
    font-weight: 600;
}

.adv-atc-qty {
    flex: 0 0 auto;
    width: 100px;
}

.adv-atc-qty-select {
    width: 100%;
    height: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background-color: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.adv-atc-btn {
    flex: 1 1 auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.adv-atc-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.adv-atc-btn-icon svg {
    fill: currentColor;
    width: 1.1em;
    height: 1.1em;
}

.adv-atc-btn:hover {
    background-color: #333;
}

.adv-atc-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.adv-atc-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Beautiful side-by-side links/tags layout at bottom */
.adv-atc-links-stack {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

.adv-atc-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-grow: 1;
}

.adv-atc-chosen-tag {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 11px; /* Smaller font-size for variant text tags */
    color: #333;
    background: #fafafa;
    line-height: 1.2;
    font-weight: 500;
    box-sizing: border-box;
}

.adv-atc-links-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.adv-atc-links-right .added_to_cart {
    color: #b05a72 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline !important;
    display: inline-block;
    padding: 2px 0;
}

.adv-atc-links-right .adv-atc-edit-container {
    display: block;
}

.adv-atc-links-right .adv-atc-edit-btn {
    background: none;
    border: none;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 2px 0;
}

@media (max-width: 767px) {
    .adv-atc-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .adv-atc-qty {
        width: 100% !important;
        flex: 1 1 auto !important;
    }

    .adv-atc-btn {
        width: 100% !important;
        flex: 1 1 auto !important;
    }

    /* Wrap tag pills horizontally in row flow on mobile so they stack cleanly */
    .adv-atc-links-stack {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .adv-atc-selected-tags {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .adv-atc-chosen-tag {
        width: auto !important; /* Remain auto width so they act like horizontal pills */
        text-align: center;
        white-space: nowrap !important;
    }

    .adv-atc-links-right {
        justify-content: flex-start !important;
        width: 100% !important;
    }
}
