.cm-cancel-membership-container {
    display: flex;
    justify-content: space-between;
}

/* ---------- Button ---------- */
.cm-cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #3d2b1f;
    color: #f0e6d8;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
    box-shadow: 0 2px 10px rgba(61, 43, 31, 0.25);
    position: relative;
    overflow: hidden;
}

.cm-cancel-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cm-cancel-btn svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.cm-cancel-btn:hover {
    background: #7a1e1e;
    box-shadow: 0 6px 20px rgba(122, 30, 30, 0.35);
    transform: translateY(-1px);
}

.cm-cancel-btn:hover svg {
    opacity: 1;
}

.cm-cancel-btn:active {
    transform: translateY(0);
}

/* ---------- Overlay ---------- */
.cm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 18, 10, 0.55);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cm-overlay.cm-open {
    display: flex;
    animation: cm-fade-in 0.2s ease forwards;
}

@keyframes cm-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------- Modal card ---------- */
.cm-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 12px 40px rgba(30, 18, 10, 0.18),
        0 32px 80px rgba(30, 18, 10, 0.12);
    overflow: hidden;
    position: relative;
    animation: cm-slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cm-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Decorative top bar */
.cm-modal-bar {
    height: 5px;
    background: linear-gradient(90deg, #3d2b1f 0%, #b07d4f 50%, #c0392b 100%);
}

/* ---------- Modal inner ---------- */
.cm-modal-body {
    padding: 32px 32px 28px;
    text-align: center;
}

/* Close × */
.cm-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #f5f0eb;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9a8778;
    font-size: 0.9rem;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.cm-close:hover {
    background: #3d2b1f;
    color: #f0e6d8;
}

/* Icon ring */
.cm-icon-ring {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fdf0ef;
    border: 2px solid #f5c6c3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.cm-icon-ring svg {
    width: 26px;
    height: 26px;
    stroke: #c0392b;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Headings & text */
.cm-modal-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    color: #3d2b1f;
    margin: 0 0 8px;
    line-height: 1.3;
}

.cm-modal-sub {
    font-size: 0.86rem;
    color: #9a8778;
    line-height: 1.65;
    margin: 0 0 18px;
}

/* Loss list */
.cm-loss-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.cm-loss-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.83rem;
    color: #5c3d2e;
    padding: 6px 0;
    border-bottom: 1px solid #f5f0eb;
}

.cm-loss-list li:last-child {
    border-bottom: none;
}

.cm-loss-list li svg {
    flex-shrink: 0;
    margin-top: 1px;
    width: 14px;
    height: 14px;
    stroke: #b07d4f;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Warning banner */
.cm-warning {
    background: #fdf6ec;
    border: 1px solid #f0d9b5;
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.8rem;
    color: #7b5800;
    text-align: left;
    margin-bottom: 24px;
}

.cm-warning svg {
    flex-shrink: 0;
    margin-top: 1px;
    width: 15px;
    height: 15px;
    stroke: #e6a817;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Divider */
.cm-divider {
    border: none;
    border-top: 1px solid #f0ebe4;
    margin: 0 0 20px;
}

/* Action buttons */
.cm-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cm-btn-confirm {
    width: 100%;
    background: #3d2b1f;
    color: #f0e6d8;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(61, 43, 31, 0.2);
    position: relative;
}

.cm-btn-confirm:hover:not(:disabled) {
    background: #7a1e1e;
    box-shadow: 0 6px 20px rgba(122, 30, 30, 0.3);
    transform: translateY(-1px);
}

.cm-btn-confirm:active:not(:disabled) {
    transform: translateY(0);
}

.cm-btn-confirm:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: #3d2b1f !important;
}

/* Spinner inside button */
.cm-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(240, 230, 216, 0.35);
    border-top-color: #f0e6d8;
    border-radius: 50%;
    animation: cm-spin 0.65s linear infinite;
    margin: 0 auto;
}

@keyframes cm-spin {
    to {
        transform: rotate(360deg);
    }
}

.cm-btn-confirm.cm-loading .cm-btn-label {
    display: none;
}

.cm-btn-confirm.cm-loading .cm-spinner {
    display: block;
}

.cm-btn-keep {
    width: 100%;
    background: #f5f0eb;
    color: #3d2b1f;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cm-btn-keep:hover {
    background: #ede5da;
}

/* ---------- Success state ---------- */
.cm-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 0 8px;
}

.cm-success.cm-visible {
    display: flex;
    animation: cm-slide-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cm-success-ring {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #e8f5e9;
    border: 2px solid #a5d6a7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.cm-success-ring svg {
    width: 26px;
    height: 26px;
    stroke: #2e7d32;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Error notice */
.cm-error-msg {
    display: none;
    background: #fdf0ef;
    border: 1px solid #f5c6c3;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #922b21;
    margin-bottom: 14px;
    text-align: left;
}

.cm-error-msg.cm-visible {
    display: block;
}