/* ============================================
   LAS CASAS — SUPPORT TICKETS PREMIUM
   ============================================ */

/* HC_TICKETS_ADMIN_COLORES_V1 (2026-08-26): los tokens se declaran TAMBIÉN en
   las tarjetas sueltas. En wp-admin la vista del ticket se pinta SIN la
   envoltura .lc-support-tickets, así que var(--primary) no resolvía a nada y
   los títulos salían con el negro del admin sobre la tarjeta oscura —
   invisibles. En el frontend no cambia nada: son los mismos valores. */
.lc-support-tickets,
.lc-ticket-form-container,
.lc-ticket-check,
.lc-ticket-view {
    --primary: #E2C48E;
    --primary-hover: #F1D8AA;
    --text: #C2C2C2;
    --text-light: #F5F5F5;
    --text-muted: #9EA4AE;
}

.lc-support-tickets {
    width: 100%;
    max-width: 1240px;
    margin: 24px auto 36px;
    padding: 28px 14px;
    box-sizing: border-box;

    background: linear-gradient(180deg, #0d1318 0%, #0b1014 100%);
    border-radius: 24px;
    color: #C2C2C2;
}

.lc-support-tickets *,
.lc-support-tickets *::before,
.lc-support-tickets *::after {
    box-sizing: border-box;
}

.lc-support-tickets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

/* ===== Cards ===== */
.lc-ticket-form-container,
.lc-ticket-check,
.lc-ticket-view {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        linear-gradient(145deg, #151b21 0%, #0b1014 55%, #11181f 100%);
    border: 1px solid rgba(226, 196, 142, 0.18);
    border-radius: 22px;
    padding: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 -1px 0 rgba(0,0,0,0.35),
        0 10px 30px rgba(0,0,0,0.34);
}

.lc-ticket-form-container::before,
.lc-ticket-check::before,
.lc-ticket-view::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(248, 209, 137, 0.8), transparent);
    pointer-events: none;
}

.lc-ticket-view {
    margin-bottom: 24px;
}

/* ===== Typography ===== */
.lc-ticket-form-container h3,
.lc-ticket-check h3,
.lc-ticket-view h2,
.lc-ticket-view h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px 0;
    color: var(--primary);
    font-family: 'DM Serif Display', serif;
    font-size: 1.9rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.14),
        0 2px 6px rgba(0,0,0,0.35);
}

.lc-ticket-form-container p,
.lc-ticket-check p {
    margin: 0 0 18px 0;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ===== Premium metallic 3D icons ===== */
.lc-ticket-form-container h3::before,
.lc-ticket-check h3::before,
.lc-ticket-view h2::before,
.lc-ticket-view h3::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    color: #2b1d07;
    background:
        radial-gradient(circle at 30% 28%, #fff6d7 0%, #f8d189 22%, #e2c48e 44%, #b88b44 70%, #7a5927 100%);
    border: 1px solid rgba(255, 243, 207, 0.55);
    box-shadow:
        inset 0 2px 2px rgba(255,255,255,0.7),
        inset 0 -4px 8px rgba(104, 73, 19, 0.45),
        0 4px 10px rgba(0,0,0,0.35),
        0 0 0 1px rgba(226, 196, 142, 0.16);
    text-shadow:
        0 1px 0 rgba(255,255,255,0.55),
        0 -1px 0 rgba(80,55,13,0.22);
    transform: translateY(-1px);
    flex: 0 0 42px;
}

.lc-ticket-form-container h3::before {
    content: "\f0e0";
}

.lc-ticket-check h3::before {
    content: "\f059";
}

.lc-ticket-view h2::before,
.lc-ticket-view h3::before {
    content: "\f145";
}

/* ===== Forms ===== */
.lc-ticket-form,
.lc-ticket-check-form {
    width: 100%;
}

.lc-form-group {
    margin-bottom: 18px;
}

.lc-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.lc-form-group label .required {
    color: #ff8d8d;
    margin-left: 2px;
}

.lc-form-group input,
.lc-form-group textarea,
.lc-ticket-view textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid rgba(247, 246, 242, 0.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025)),
        #0b1014;
    color: var(--text-light);
    font-size: 0.96rem;
    line-height: 1.5;
    font-family: inherit;
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.45),
        0 1px 0 rgba(255,255,255,0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    appearance: none;
}

.lc-form-group textarea,
.lc-ticket-view textarea {
    min-height: 150px;
    resize: vertical;
}

.lc-form-group input::placeholder,
.lc-form-group textarea::placeholder,
.lc-ticket-view textarea::placeholder {
    color: #8e95a1;
}

.lc-form-group input:focus,
.lc-form-group textarea:focus,
.lc-ticket-view textarea:focus {
    outline: none;
    border-color: rgba(226, 196, 142, 0.9);
    box-shadow:
        0 0 0 3px rgba(226, 196, 142, 0.12),
        0 0 16px rgba(226, 196, 142, 0.12),
        inset 0 1px 2px rgba(0,0,0,0.38);
    transform: translateY(-1px);
}

.lc-form-group small {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

/* ===== Buttons ===== */
.lc-support-tickets .lc-btn,
.lc-support-tickets button.lc-btn,
.lc-support-tickets .lc-btn.lc-btn-primary,
.lc-support-tickets button.lc-btn.lc-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 237, 199, 0.5) !important;
    background: linear-gradient(180deg, #f9deb0 0%, #e2c48e 42%, #c79c53 100%) !important;
    color: #13100b !important;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow:
        inset 0 2px 2px rgba(255,255,255,0.6),
        inset 0 -4px 8px rgba(122, 89, 39, 0.3),
        0 8px 18px rgba(0,0,0,0.28) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-shadow: none !important;
}

.lc-support-tickets .lc-btn:hover,
.lc-support-tickets .lc-btn:focus,
.lc-support-tickets .lc-btn.lc-btn-primary:hover,
.lc-support-tickets .lc-btn.lc-btn-primary:focus {
    transform: translateY(-2px);
    filter: brightness(1.03);
    background: linear-gradient(180deg, #fde7bf 0%, #e8cb95 42%, #d1a55a 100%) !important;
    color: #13100b !important;
    box-shadow:
        inset 0 2px 2px rgba(255,255,255,0.66),
        inset 0 -4px 8px rgba(122, 89, 39, 0.26),
        0 12px 22px rgba(0,0,0,0.34) !important;
}

.lc-btn:disabled {
    opacity: 0.8;
    cursor: wait;
    transform: none;
}

.lc-support-tickets .lc-btn-secondary {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
        transparent !important;
    color: var(--primary) !important;
    border: 1px solid rgba(226, 196, 142, 0.7) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 6px 14px rgba(0,0,0,0.25);
}

.lc-btn-secondary:hover,
.lc-btn-secondary:focus {
    background:
        linear-gradient(180deg, rgba(226,196,142,0.13), rgba(226,196,142,0.05)),
        transparent !important;
    color: #ffe9bc !important;
}

/* ===== Turnstile ===== */
.lc-support-tickets .cf-turnstile {
    display: inline-block;
    padding: 10px;
    border-radius: 14px;
    background: #cccccc;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.lc-support-tickets .cf-turnstile {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.lc-support-tickets .cf-turnstile > div,
.lc-support-tickets .cf-turnstile iframe {
    max-width: 100% !important;
}

@media (max-width: 480px) {
    .lc-support-tickets .cf-turnstile {
        transform: scale(0.92);
        transform-origin: left top;
    }
}

@media (max-width: 360px) {
    .lc-support-tickets .cf-turnstile {
        transform: scale(0.86);
        transform-origin: left top;
    }
}

/* ===== Button loader ===== */
.btn-text,
.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-loader i {
    font-size: 15px;
}

/* ===== Ticket header ===== */
.lc-ticket-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(226, 196, 142, 0.14);
}

.lc-ticket-header h2,
.lc-ticket-header h3 {
    margin: 0;
    font-size: 1.55rem;
}

.lc-ticket-header p {
    margin: 2px 0 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ===== Status ===== */
.lc-ticket-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border: 1px solid transparent;
}

.lc-ticket-status.open {
    color: #1e1302;
    background:
        linear-gradient(180deg, #fce5b8 0%, #e2c48e 45%, #b98943 100%);
    border-color: rgba(255, 235, 190, 0.5);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.55),
        inset 0 -3px 6px rgba(122, 89, 39, 0.24);
}

.lc-ticket-status.pending_email {
    color: #2a1c05;
    background:
        linear-gradient(180deg, #ffe7a6 0%, #f0c96a 45%, #c6912b 100%);
    border-color: rgba(255, 220, 120, 0.45);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.4),
        inset 0 -3px 6px rgba(122, 89, 39, 0.2);
}

.lc-ticket-status.closed {
    color: #ecedf0;
    background:
        linear-gradient(180deg, #5f6670 0%, #434b54 48%, #2e353d 100%);
    border-color: rgba(255,255,255,0.12);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.12),
        inset 0 -3px 6px rgba(0,0,0,0.24);
}

/* ===== Meta ===== */
.lc-ticket-meta {
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
        rgba(255,255,255,0.015);
    border: 1px solid rgba(226, 196, 142, 0.1);
}

.lc-ticket-meta p {
    margin: 0 0 10px 0;
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.58;
    word-break: break-word;
}

.lc-ticket-meta p:last-child {
    margin-bottom: 0;
}

.lc-ticket-meta strong {
    color: var(--primary);
    font-weight: 700;
}

/* ===== Subject ===== */
.lc-ticket-subject {
    margin-bottom: 18px;
    padding: 12px 0;
    color: var(--text-light);
    font-size: 0.97rem;
    line-height: 1.55;
    word-break: break-word;
}

.lc-ticket-subject strong {
    color: var(--primary);
    font-weight: 700;
}

/* ===== Message ===== */
.lc-ticket-message {
    margin-bottom: 22px;
}

.lc-ticket-message h3 {
    margin-bottom: 12px;
    font-size: 1.22rem;
}

.lc-ticket-message strong {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 700;
}

.lc-ticket-message-content {
    padding: 16px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        rgba(255,255,255,0.018);
    border: 1px solid rgba(247, 246, 242, 0.08);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.72;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ===== Reply ===== */
.lc-ticket-reply {
    position: relative;
    margin: 18px 0;
    padding: 16px 16px 16px 18px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(226,196,142,0.09), rgba(226,196,142,0.03)),
        rgba(255,255,255,0.02);
    border: 1px solid rgba(226, 196, 142, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 8px 18px rgba(0,0,0,0.2);
}

.lc-ticket-reply::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #f9deb0, #c89f58);
}

.lc-ticket-reply strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 800;
}

.lc-ticket-reply p {
    margin: 0;
    color: var(--text);
    line-height: 1.72;
    word-break: break-word;
}

.lc-ticket-reply small {
    display: block;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Note ===== */
.lc-ticket-note {
    margin: 20px 0;
    padding: 14px 16px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(226,196,142,0.08), rgba(226,196,142,0.025)),
        rgba(255,255,255,0.015);
    border: 1px solid rgba(226, 196, 142, 0.2);
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.58;
}

/* ===== Error / Success ===== */
.lc-error {
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 16px;
    background: rgba(220, 53, 69, 0.08);
    color: #ffb8be;
    line-height: 1.55;
}

.lc-success {
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(76, 175, 80, 0.35);
    border-radius: 16px;
    background: rgba(76, 175, 80, 0.08);
    color: #bde8be;
    line-height: 1.55;
}

/* ===== Disclaimer ===== */
.lc-ticket-disclaimer {
    max-width: 1240px;
    margin: 20px auto 0;
    padding: 16px 18px;
    border: 1px solid rgba(226, 196, 142, 0.2);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(226,196,142,0.05), rgba(226,196,142,0.02)),
        rgba(255,255,255,0.01);
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.72;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 8px 18px rgba(0,0,0,0.18);
}

.lc-ticket-disclaimer p {
    margin: 0 0 12px 0;
}

.lc-ticket-disclaimer p:last-child {
    margin-bottom: 0;
}

.lc-ticket-disclaimer strong {
    color: var(--primary);
}

/* ===== Links ===== */
.lc-support-tickets a:not(.lc-btn) {
    color: var(--primary);
    text-decoration: none;
}

.lc-support-tickets a:not(.lc-btn):hover,
.lc-support-tickets a:not(.lc-btn):focus {
    color: var(--primary-hover);
    text-decoration: underline;
}

.lc-ticket-meta a {
    color: var(--primary);
    text-decoration: none;
}

.lc-ticket-meta a:hover,
.lc-ticket-meta a:focus {
    text-decoration: underline;
}

/* ===== Admin helpers ===== */
.lc-flex {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

/* HC_TICKETS_ADMIN_COLORES_V1: los botones de WP (azul admin) chocaban con la
   tarjeta oscura. Dentro de la vista del ticket visten el oro de la casa —
   primario macizo, secundario de borde — con !important porque los estilos del
   admin de WP también lo llevan. */
.lc-ticket-view .button,
.lc-ticket-view .button-primary {
    min-height: 42px;
    padding: 8px 22px !important;
    border-radius: 999px !important;
    font-weight: 700;
    line-height: 1.4 !important;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.lc-ticket-view .button-primary {
    background: linear-gradient(180deg, #f9deb0 0%, #e2c48e 42%, #c79c53 100%) !important;
    border: 1px solid rgba(255, 237, 199, 0.5) !important;
    color: #13100b !important;
    text-shadow: none !important;
    box-shadow:
        inset 0 2px 2px rgba(255,255,255,0.6),
        inset 0 -4px 8px rgba(122, 89, 39, 0.3),
        0 8px 18px rgba(0,0,0,0.28) !important;
}

.lc-ticket-view .button-primary:hover,
.lc-ticket-view .button-primary:focus {
    filter: brightness(1.05);
    transform: translateY(-1px);
    background: linear-gradient(180deg, #fde7bf 0%, #e8cb95 42%, #d1a55a 100%) !important;
    color: #13100b !important;
}

.lc-ticket-view .button:not(.button-primary) {
    background: transparent !important;
    border: 1px solid rgba(226, 196, 142, 0.7) !important;
    color: var(--primary) !important;
}

.lc-ticket-view .button:not(.button-primary):hover,
.lc-ticket-view .button:not(.button-primary):focus {
    background: rgba(226, 196, 142, 0.12) !important;
    color: #ffe9bc !important;
}

/* Los separadores inline del PHP llevan un gris claro de admin (#e5e7eb) que
   sobre la tarjeta oscura resplandece; se rebajan aquí. */
.lc-ticket-view [style*="border-top"] {
    border-top-color: rgba(226, 196, 142, 0.16) !important;
}

.widefat .lc-ticket-status {
    font-size: 0.72rem;
    padding: 4px 10px;
    min-height: 26px;
}

/* ===== Tablet / Desktop ===== */
@media (min-width: 769px) {
    .lc-support-tickets {
        padding: 36px 28px;
        margin-top: 32px;
    }

    .lc-support-tickets-grid {
        grid-template-columns: 1.08fr 0.92fr;
        gap: 28px;
    }

    .lc-ticket-form-container,
    .lc-ticket-check,
    .lc-ticket-view {
        padding: 28px;
    }

    .lc-ticket-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .lc-btn {
        width: auto;
    }

    .lc-flex {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

/* ===== Mobile fine tuning ===== */
@media (max-width: 768px) {
    .lc-ticket-form-container h3,
    .lc-ticket-check h3,
    .lc-ticket-view h2,
    .lc-ticket-view h3 {
        font-size: 1.55rem;
    }

    .lc-ticket-form-container h3::before,
    .lc-ticket-check h3::before,
    .lc-ticket-view h2::before,
    .lc-ticket-view h3::before {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 12px;
    }
}

@media (max-width: 782px) {
    .wp-list-table .lc-ticket-status {
        margin-top: 4px;
    }

    .lc-ticket-view textarea {
        font-size: 16px;
    }
}

.lc-risk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

.lc-risk-low {
    background: rgba(76, 175, 80, 0.14);
    color: #9be7a0;
    border-color: rgba(76, 175, 80, 0.25);
}

.lc-risk-medium {
    background: rgba(255, 193, 7, 0.14);
    color: #ffe08a;
    border-color: rgba(255, 193, 7, 0.25);
}

.lc-risk-high {
    background: rgba(255, 87, 34, 0.14);
    color: #ffb08f;
    border-color: rgba(255, 87, 34, 0.25);
}

.lc-risk-critical {
    background: rgba(220, 53, 69, 0.16);
    color: #ffb3bc;
    border-color: rgba(220, 53, 69, 0.3);
}
.lc-ticket-geo-preview {
    margin: 18px 0 20px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(226, 196, 142, 0.22);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
        linear-gradient(145deg, #151b21 0%, #0b1014 55%, #11181f 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 8px 20px rgba(0,0,0,0.22);
}

.lc-ticket-geo-preview__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--primary);
}

.lc-ticket-geo-preview__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #2b1d07;
    background:
        radial-gradient(circle at 30% 28%, #fff6d7 0%, #f8d189 22%, #e2c48e 44%, #b88b44 70%, #7a5927 100%);
    box-shadow:
        inset 0 2px 2px rgba(255,255,255,0.7),
        inset 0 -4px 8px rgba(104, 73, 19, 0.45),
        0 4px 10px rgba(0,0,0,0.35);
}

.lc-ticket-geo-preview__body {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
}

.lc-ticket-geo-preview__meta {
    display: grid;
    gap: 8px;
}

.lc-ticket-geo-preview__line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text);
    line-height: 1.5;
}

.lc-ticket-geo-preview__label {
    color: var(--primary);
    font-weight: 700;
}

.lc-ticket-geo-preview__value {
    color: var(--text-light);
}

.lc-ticket-geo-preview__note {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.lc-ticket-location-rich__text {
    vertical-align: middle;
}

.lc-ticket-flag {
    display: inline-block;
    width: 52px;
    height: 36px;
    border-radius: 10px;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -3px 6px rgba(0,0,0,0.2),
        0 6px 14px rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.18);
    overflow: hidden;
    vertical-align: middle;
    margin-right: 10px;
}

.lc-ticket-flag::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.35), transparent 42%),
        linear-gradient(180deg, transparent, rgba(0,0,0,0.12));
    pointer-events: none;
}

.lc-ticket-flag--unknown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 28%, #fff6d7 0%, #f8d189 22%, #e2c48e 44%, #b88b44 70%, #7a5927 100%);
    color: #2b1d07;
    font-size: 22px;
}

.lc-ticket-flag--es {
    background: linear-gradient(180deg, #b50f1d 0 25%, #f1c40f 25% 75%, #b50f1d 75% 100%);
}

.lc-ticket-flag--fr {
    background: linear-gradient(90deg, #1f4aa8 0 33.33%, #f5f5f5 33.33% 66.66%, #c62828 66.66% 100%);
}

.lc-ticket-flag--de {
    background: linear-gradient(180deg, #111 0 33.33%, #b71c1c 33.33% 66.66%, #f4c20d 66.66% 100%);
}

.lc-ticket-flag--it {
    background: linear-gradient(90deg, #1e7c45 0 33.33%, #f5f5f5 33.33% 66.66%, #c62828 66.66% 100%);
}

.lc-ticket-flag--pt {
    background: linear-gradient(90deg, #0c6a3b 0 40%, #c62828 40% 100%);
}

.lc-ticket-flag--gb {
    background:
        linear-gradient(0deg, transparent 43%, #fff 43% 57%, transparent 57%),
        linear-gradient(90deg, transparent 43%, #fff 43% 57%, transparent 57%),
        linear-gradient(0deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
        linear-gradient(90deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
        #1f3f95;
}

.lc-ticket-flag--ua {
    background: linear-gradient(180deg, #1e88e5 0 50%, #f4d03f 50% 100%);
}

.lc-ticket-flag--ru {
    background: linear-gradient(180deg, #f5f5f5 0 33.33%, #2f5fb3 33.33% 66.66%, #c62828 66.66% 100%);
}

.lc-ticket-flag--kz {
    background: linear-gradient(180deg, #29b6f6 0 100%);
}

.lc-ticket-flag--by {
    background: linear-gradient(180deg, #c62828 0 70%, #2e7d32 70% 100%);
}

.lc-ticket-flag--md {
    background: linear-gradient(90deg, #1f4aa8 0 33.33%, #f4c20d 33.33% 66.66%, #c62828 66.66% 100%);
}

.lc-ticket-flag--am {
    background: linear-gradient(180deg, #c62828 0 33.33%, #1f4aa8 33.33% 66.66%, #f4c20d 66.66% 100%);
}

.lc-ticket-flag--az {
    background: linear-gradient(180deg, #26c6da 0 33.33%, #c62828 33.33% 66.66%, #2e7d32 66.66% 100%);
}

.lc-ticket-flag--ge {
    background: #f5f5f5;
}

@media (max-width: 640px) {
    .lc-ticket-geo-preview__body {
        grid-template-columns: 1fr;
    }

    .lc-ticket-geo-preview__flag-wrap {
        display: flex;
        justify-content: flex-start;
    }
}