/* EM Gift Cards – Shortcode styles v1.1
   Works on light and dark backgrounds.
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

.emgc-wrap {
    margin: 24px 0;
    text-align: center;
}

/* ── Label ─────────────────────────────────────── */
p.emgc-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .6px !important;
    color: inherit !important;
    opacity: .6;
    margin: 0 0 14px !important;
}

/* ── Amount pills ──────────────────────────────── */
.emgc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.emgc-pill {
    padding: 12px 22px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    min-width: 72px;
    text-align: center;
    line-height: 1;
    font-family: 'Playfair Display', Georgia, serif;
}

.emgc-pill:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.emgc-pill.emgc-selected {
    border-color: #fff;
    background: #fff;
    color: #1a1a1a;
}

/* Light background override — add class="light" to the shortcode wrapper via CSS if needed */
.emgc-wrap.emgc-light .emgc-pill {
    border-color: rgba(0,0,0,0.25);
    color: #1a1a1a;
}
.emgc-wrap.emgc-light .emgc-pill:hover {
    border-color: #1a1a1a;
    background: rgba(0,0,0,0.05);
}
.emgc-wrap.emgc-light .emgc-pill.emgc-selected {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

/* ── Continue button ───────────────────────────── */
.emgc-continue {
    display: none;
    padding: 13px 32px;
    background: #fff;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: .3px;
}

.emgc-continue:hover {
    background: #f0f0f0;
}

.emgc-wrap.emgc-light .emgc-continue {
    background: #1a1a1a;
    color: #fff;
}
.emgc-wrap.emgc-light .emgc-continue:hover {
    background: #333;
}

/* ── Overlay ───────────────────────────────────── */
.emgc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 99998;
}

/* ── Modal — always light, readable ───────────── */
.emgc-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 40px 36px 32px;
    width: min(560px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    text-align: left;
    box-sizing: border-box;
    font-family: 'Playfair Display', Georgia, serif;
}

.emgc-modal-title {
    margin: 0 0 4px !important;
    font-size: 22px !important;
    color: #1a1a1a !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 700 !important;
}

.emgc-modal-amount {
    font-size: 14px !important;
    color: #888 !important;
    margin: 0 0 22px !important;
}

.emgc-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #bbb;
    padding: 0;
    font-family: inherit;
}
.emgc-modal-close:hover { color: #1a1a1a; }

/* ── Gift toggle ───────────────────────────────── */
.emgc-gift-toggle {
    background: #f6f6f6;
    border-radius: 6px;
    padding: 13px 16px;
    margin-bottom: 20px;
}

.emgc-gift-toggle label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
}

.emgc-gift-toggle input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* ── Form fields ───────────────────────────────── */
.emgc-field {
    margin-bottom: 16px;
}

.emgc-field > label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    color: #444 !important;
}

.emgc-field > label em {
    font-style: normal !important;
    color: #c0392b !important;
    margin-left: 2px !important;
}

.emgc-opt {
    font-weight: 400;
    color: #aaa;
    font-size: 12px;
}

.emgc-field input[type="text"],
.emgc-field input[type="email"],
.emgc-field input[type="date"],
.emgc-field textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 11px 13px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #1a1a1a !important;
    background: #fff !important;
    transition: border-color .15s !important;
    margin: 0 !important;
}

.emgc-field input:focus,
.emgc-field textarea:focus {
    border-color: #1a1a1a !important;
    outline: none !important;
    box-shadow: none !important;
}

.emgc-field textarea { min-height: 90px; resize: vertical; }

.emgc-field small {
    display: block !important;
    margin-top: 5px !important;
    font-size: 12px !important;
    color: #aaa !important;
}

/* ── Add to basket button ──────────────────────── */
.emgc-atc-btn {
    display: block !important;
    width: 100% !important;
    margin-top: 20px !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.emgc-atc-btn.emgc-loading {
    opacity: .6 !important;
    pointer-events: none !important;
}

/* ── Error ─────────────────────────────────────── */
.emgc-modal-error {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fdf2f2;
    border-left: 3px solid #c0392b;
    border-radius: 4px;
    color: #c0392b !important;
    font-size: 13px;
}
