/* ==========================================================================
   Charmins B2B/B2C Switcher — Frontend Styles
   ========================================================================== */

/* Tabs */
.charmins-b2b-tabs {
    display: inline-flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    font-family: inherit;
}

.charmins-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #4b5563;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
}

.charmins-tab:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.charmins-tab--active {
    background: #111827;
    color: #ffffff;
}

.charmins-tab--active:hover {
    background: #1f2937;
    color: #ffffff;
}

.charmins-tab + .charmins-tab {
    border-left: 1px solid #d1d5db;
}

/* Modal */
.charmins-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charmins-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.charmins-modal__content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 1;
}

.charmins-modal__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #111827;
}

.charmins-modal__text {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.6;
}

.charmins-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.charmins-modal__confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.charmins-modal__confirm:hover {
    background: #374151;
    color: #ffffff;
    text-decoration: none;
}

.charmins-modal__cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    border: 1px solid #d1d5db;
    transition: background 0.2s;
}

.charmins-modal__cancel:hover {
    background: #e5e7eb;
}
