/*
 * ==================================================================
 * URL: https://kvartersmenyguiden.se/subscribe/subscribe.css
 * DIR: /start/subscribe/subscribe.css
 * VER: V3-GEMINI
 * DESC: CSS för KMG prenumerationswidget anpassad efter gui.png
 * ==================================================================
 */

.kmg-subscribe-demo {
    width: min(720px, calc(100% - 32px));
    margin: 40px auto;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* iOS Card UI Styling baserat på bild */
.kmg-ios-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f3f4f6;
}

.kmg-ios-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
    margin-bottom: 16px;
}

.kmg-ios-left-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kmg-ios-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0fdf4;
    border: 1px solid #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
}

.kmg-ios-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kmg-ios-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.kmg-ios-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.kmg-highlight-email {
    color: #16a34a;
    font-weight: 600;
}

/* iOS Switch Slider Toggle */
.kmg-ios-switch {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 32px;
}

.kmg-ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.kmg-ios-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #e5e7eb;
    transition: .3s;
    border-radius: 34px;
}

.kmg-ios-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .kmg-ios-slider {
    background-color: #22c55e;
}

input:checked + .kmg-ios-slider:before {
    transform: translateX(26px);
}

/* Status-rutan i botten av bilden */
.kmg-subscribe-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
}

.kmg-subscribe-status.is-success {
    color: #14532d;
}

.kmg-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #16a34a;
    color: #ffffff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

.kmg-status-icon.is-inactive {
    background-color: #dc2626;
}

.kmg-subscribe-status small {
    color: #6b7280;
}

/* Gästläge & Modaler (Befintlig CSS) */
.kmg-subscribe-open,
.kmg-subscribe-button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: .04em;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(37, 99, 235, .28);
}
.kmg-subscribe-open:hover, .kmg-subscribe-button:hover { filter: brightness(1.05); text-decoration: none; }
.kmg-subscribe-lock { overflow: hidden; }
.kmg-subscribe-modal[hidden] { display: none; }
.kmg-subscribe-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .68); backdrop-filter: blur(3px); z-index: 99990; }
.kmg-subscribe-dialog { position: fixed; left: 50%; top: 50%; width: min(440px, calc(100% - 28px)); transform: translate(-50%, -50%); background: #fff; color: #111827; border-radius: 24px; padding: 28px; z-index: 99991; box-shadow: 0 30px 90px rgba(15, 23, 42, .35); }
.kmg-subscribe-close { position: absolute; right: 14px; top: 12px; border: 0; background: #f3f4f6; color: #111827; width: 34px; height: 34px; border-radius: 999px; cursor: pointer; font-size: 24px; line-height: 1; }
.kmg-subscribe-dialog h2 { margin: 0 34px 10px 0; font-size: 26px; }
.kmg-subscribe-dialog p { margin: 0 0 12px; color: #4b5563; line-height: 1.45; }
.kmg-subscribe-form { display: grid; gap: 10px; margin-top: 18px; }
.kmg-subscribe-form input[type="email"] { width: 100%; border: 1px solid #d1d5db; border-radius: 14px; min-height: 48px; padding: 0 14px; font-size: 16px; }
.kmg-subscribe-form button { border: 0; border-radius: 14px; min-height: 48px; background: #111827; color: #fff; font-weight: 900; cursor: pointer; }