/* TGS Shipping Location — Frontend styles */

#tgs_sl_address_field {
    position: relative;
}

#tgs_sl_address {
    width: 100%;
}

body.tgs-sl-prompt-open {
    overflow: hidden;
}

.tgs-sl-prompt {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.tgs-sl-prompt.is-visible {
    opacity: 1;
    visibility: visible;
}

.tgs-sl-prompt__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .72);
    backdrop-filter: blur(1px);
}

.tgs-sl-prompt__dialog {
    position: relative;
    width: min(100%, 560px);
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    color: #202124;
    transform: translateY(14px) scale(.98);
    transition: transform .22s ease;
}

.tgs-sl-prompt.is-visible .tgs-sl-prompt__dialog {
    transform: translateY(0) scale(1);
}

.tgs-sl-prompt__close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: #171717;
    font: 300 42px/40px Arial, sans-serif;
    cursor: pointer;
}

.tgs-sl-prompt__close:hover,
.tgs-sl-prompt__close:focus-visible {
    background: #f3f4f6;
    color: #171717;
}

.tgs-sl-prompt__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 270px;
    padding: 50px 45px 8px;
}

.tgs-sl-prompt__illustration {
    display: block;
    width: min(100%, 410px);
    height: auto;
}

.tgs-sl-prompt__content {
    padding: 10px 42px 24px;
    text-align: center;
}

.tgs-sl-prompt__content h2 {
    margin: 0 0 8px;
    color: #181818;
    font-family: inherit;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.tgs-sl-prompt__content p {
    max-width: 460px;
    margin: 0 auto;
    color: #555;
    font-size: 17px;
    line-height: 1.45;
}

.tgs-sl-prompt__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 22px 20px;
}

.tgs-sl-prompt__actions button {
    min-height: 58px;
    margin: 0;
    padding: 10px 18px;
    border: 1.5px solid #d93631;
    border-radius: 10px;
    box-shadow: none;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
}

.tgs-sl-prompt__later {
    background: #fff;
    color: #d93631;
}

.tgs-sl-prompt__agree {
    background: #d93631;
    color: #fff;
}

.tgs-sl-prompt__actions button:hover {
    background: #bd2825;
    color: #fff;
}

.tgs-sl-prompt__actions button:focus-visible,
.tgs-sl-prompt__close:focus-visible {
    outline: 3px solid rgba(31, 92, 168, .35);
    outline-offset: 2px;
}

.tgs-sl-prompt__actions button:disabled {
    cursor: wait;
    opacity: .72;
}

@media (max-width: 600px) {
    .tgs-sl-prompt {
        align-items: end;
        padding: 12px;
    }

    .tgs-sl-prompt__dialog {
        border-radius: 18px;
    }

    .tgs-sl-prompt__visual {
        min-height: 190px;
        padding: 42px 34px 0;
    }

    .tgs-sl-prompt__content {
        padding: 6px 24px 20px;
    }

    .tgs-sl-prompt__content h2 {
        font-size: 20px;
    }

    .tgs-sl-prompt__content p {
        font-size: 15px;
    }

    .tgs-sl-prompt__actions {
        gap: 9px;
        padding: 0 14px 14px;
    }

    .tgs-sl-prompt__actions button {
        min-height: 52px;
        padding: 8px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tgs-sl-prompt,
    .tgs-sl-prompt__dialog {
        transition: none;
    }
}
