/* ANMA Bundle – Apple-inspired design v2.0.2 */
.anma-bundle-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    max-width: 100% !important;
    margin: 24px auto 0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.anma-bundle-heading {
    font-size: 21px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin: 0 0 20px !important;
    letter-spacing: -0.01em;
    text-align: left !important;
}

/* ─── Product list ─── */
.anma-bundle-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* ─── Product card ─── */
.anma-bundle-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    border: 1.5px solid #d2d2d7 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
    cursor: pointer;
}

/* Selected state – blue border when qty >= 1 */
.anma-bundle-item.anma-selected {
    border-color: #007AFF !important;
    box-shadow: 0 0 0 1px #007AFF !important;
}

/* ─── Thumbnail ─── */
.anma-bundle-item-thumb {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0;
    border-radius: 10px !important;
    overflow: hidden;
    background: #f5f5f7;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.anma-bundle-item-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 10px !important;
}

/* ─── Product info ─── */
.anma-bundle-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.anma-bundle-item-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.anma-bundle-item-price {
    font-size: 13px !important;
    color: #86868b !important;
    font-weight: 400 !important;
    line-height: 1.3;
}

/* ─── Variation select ─── */
.anma-bundle-var-select {
    font-size: 13px !important;
    padding: 5px 8px !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #1d1d1f !important;
    margin-top: 4px;
    max-width: 140px;
    appearance: auto;
}

/* ─── Quantity controls ─── */
.anma-bundle-item-qty {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0;
}

.anma-bundle-qty-btn {
    width: 28px !important;
    height: 28px !important;
    border: none !important;
    background: transparent !important;
    color: #1d1d1f !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background .15s;
    padding: 0 !important;
    line-height: 1;
}

.anma-bundle-qty-btn:hover {
    background: rgba(0, 0, 0, 0.06) !important;
}

.anma-bundle-qty-btn:active {
    background: rgba(0, 0, 0, 0.10) !important;
}

.anma-bundle-qty-minus {
    border-radius: 50% !important;
}

.anma-bundle-qty-plus {
    border-radius: 50% !important;
}

.anma-bundle-qty-input {
    width: 28px !important;
    height: 28px !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    font-family: inherit;
    line-height: 28px !important;
}

.anma-bundle-qty-input::-webkit-outer-spin-button,
.anma-bundle-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ─── Footer / Total ─── */
.anma-bundle-footer {
    margin-top: 24px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.anma-bundle-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 4px !important;
}

.anma-bundle-total-label {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #1d1d1f !important;
}

.anma-bundle-total-value {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    letter-spacing: -0.02em;
}

/* ─── CTA Button ─── */
.anma-bundle-add-btn {
    display: block !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: #007AFF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.anma-bundle-add-btn:hover {
    background: #0066d6 !important;
}

.anma-bundle-add-btn:active {
    transform: scale(0.985);
    background: #005bc1 !important;
}

.anma-bundle-add-btn:disabled {
    background: #d2d2d7 !important;
    color: #86868b !important;
    cursor: not-allowed;
    transform: none;
}

/* ─── Feedback ─── */
.anma-bundle-feedback {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 12px !important;
    font-size: 14px !important;
    text-align: center;
    font-weight: 500;
}

.anma-bundle-feedback.success {
    background: #e8f5e9 !important;
    color: #1b5e20 !important;
    display: block !important;
}

.anma-bundle-feedback.error {
    background: #ffeef0 !important;
    color: #c62828 !important;
    display: block !important;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .anma-bundle-item {
        padding: 12px 12px !important;
        gap: 10px !important;
    }
    .anma-bundle-item-thumb {
        width: 40px !important;
        height: 40px !important;
    }
    .anma-bundle-item-name {
        font-size: 14px !important;
    }
    .anma-bundle-total-value {
        font-size: 22px !important;
    }
    .anma-bundle-add-btn {
        font-size: 16px !important;
        padding: 14px 20px !important;
        border-radius: 12px !important;
    }
}