.shipcode-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.shipcode-modal[hidden] {
    display: none !important;
}

.shipcode-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 2, 2, 0.58);
    backdrop-filter: blur(8px);
}

.shipcode-modal__card {
    position: relative;
    width: min(400px, 100%);
    margin: 0;
    padding: 36px 28px 24px;
    border-radius: 24px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(180deg, #ff4b44 0%, #ffd0a8 100%) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 28px 70px rgba(18, 2, 2, 0.32);
    text-align: center;
    color: #232027;
    animation: shipcode-modal-in 0.22s ease;
}

.shipcode-modal__x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 999px;
    background: #f6f4f5;
    color: #6b6570;
    cursor: pointer;
    line-height: 0;
}

.shipcode-modal__x svg {
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex: none;
}

.shipcode-modal__x:hover {
    background: #ece7e9;
    color: #232027;
}

.shipcode-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff1f0;
    color: #ff4b44;
    box-shadow: inset 0 0 0 8px #fff7f6;
}

.shipcode-modal__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.25;
    color: #232027;
}

.shipcode-modal__message {
    margin: 0 0 22px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: #5c5660;
}

.shipcode-modal__action {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: #ff4b44;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.shipcode-modal__action:hover {
    filter: brightness(1.06);
}

.shipcode-modal__action:active {
    transform: scale(0.98);
}

.shipcode-modal__action:focus-visible,
.shipcode-modal__x:focus-visible {
    outline: 3px solid rgba(255, 75, 68, 0.35);
    outline-offset: 2px;
}

@keyframes shipcode-modal-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .shipcode-modal__card { animation: none; }
}
