.wc-addon-container {
    margin: 18px 0;
    padding: 14px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.wc-addon-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}
.wc-addon-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-transform: capitalize;
    margin: 0;
}
.wc-addon-required-tag {
    color: #dc2626;
    font-weight: 700;
    font-size: 16px;
    margin-left: 3px;
    line-height: 1;
}
.wc-addon-error-msg {
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    background: #fef2f2;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #fecaca;
}
/* Container validation error state */
.wc-addon-container.wc-addon-has-error {
    border-color: #dc2626 !important;
    background: #fffafa !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
    animation: wcAddonShake 0.4s ease-in-out;
}
@keyframes wcAddonShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* 1. VISUAL IMAGE SWATCH STYLE */
.wc-addon-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.wc-addon-swatch-item {
    cursor: pointer;
    position: relative;
    user-select: none;
}
.wc-addon-swatch-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}
.wc-addon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    min-width: 86px;
    max-width: 110px;
    background: #fff;
    transition: all 0.2s ease;
}
.wc-addon-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
}
.wc-addon-thumb-wrap {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wc-addon-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wc-addon-label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    text-align: center;
    line-height: 1.2;
}
.wc-addon-price {
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
    margin-top: 3px;
}
/* Active Selection - Matches Theme Button (#7a0006) */
.wc-addon-swatch-item input[type="radio"]:checked + .wc-addon-card {
    border-color: #7a0006;
    background: #fff8f8;
    box-shadow: 0 0 0 2px rgba(122, 0, 6, 0.2);
}
.wc-addon-swatch-item input[type="radio"]:checked + .wc-addon-card .wc-addon-label {
    color: #7a0006;
    font-weight: 700;
}

/* 2. TEXT BUTTON / SIZE PILL STYLE */
.wc-addon-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wc-addon-pill-item {
    cursor: pointer;
    position: relative;
    user-select: none;
}
.wc-addon-pill-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}
.wc-addon-pill-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    min-width: 58px;
    min-height: 38px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.2s ease;
    text-align: center;
}
.wc-addon-pill-btn .pill-text {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.3px;
}
.wc-addon-pill-btn .pill-price {
    font-size: 10px;
    font-weight: 600;
    color: #16a34a;
    margin-top: 2px;
}
.wc-addon-pill-item:hover .wc-addon-pill-btn {
    border-color: #7a0006;
    background: #fff8f8;
}
/* Selected Active Size Button - Matches Theme Button (#7a0006) */
.wc-addon-pill-item input[type="radio"]:checked + .wc-addon-pill-btn {
    border-color: #7a0006;
    background: #7a0006;
    box-shadow: 0 2px 6px rgba(122, 0, 6, 0.25);
}
.wc-addon-pill-item input[type="radio"]:checked + .wc-addon-pill-btn .pill-text {
    color: #ffffff;
}
.wc-addon-pill-item input[type="radio"]:checked + .wc-addon-pill-btn .pill-price {
    color: #fca5a5;
}