.modal, .toast {
    position: fixed;
    width: 100%;
    /* height: 100%; */
    height: 100vh;
    left: 0;
    top: 0;
    background: rgba(14, 17, 24, 0.50);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 7;
}

/* TCK-390: hidden modals must not stay in document flow under the footer */
.modal.d-none,
.toast.d-none {
    display: none !important;
}

.modal-base, .toast-base {
    width: 479px;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.30);
    padding: 60px 30px;
}

.gallery-feedback-root {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.gallery-feedback-root .toast {
    position: relative;
    width: auto;
    height: auto;
    inset: auto;
    background: transparent;
    backdrop-filter: none;
    display: block;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease;
    pointer-events: auto;
}

.gallery-feedback-root .toast.active {
    opacity: 1;
    transform: translateY(0);
}

.gallery-feedback-root .toast-base {
    width: min(420px, calc(100vw - 32px));
    padding: 18px 20px;
}

.toast-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
}

.toast-success .toast-icon,
.toast-icon--success {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.14);
}

.toast-error .toast-icon,
.toast-icon--error {
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.14);
}

.toast-warning .toast-icon,
.toast-icon--warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.16);
}

.toast-info .toast-icon,
.toast-icon--info {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.16);
}

#review-modal-overlay .modal-base,
#add-card-modal .modal-base,
#update-address-modal .modal-base,
#add-address-modal .modal-base,
#checkout-add-address-modal .modal-base,
#report-profile-modal .modal-base {
    width: 1190px;
}

/* Feedback is available from every Gallery layout, not only Profile. */
#feedback-modal .feedback-modal-content {
    width: 1190px;
    max-width: calc(100vw - 60px);
}

#feedback-modal .btn-submit {
    padding: 10px 20px;
}

#feedback-modal .file-upload {
    padding: 16px;
    border: 1px solid var(--color-accent);
}

#feedback-modal .file-icon {
    width: 19px;
    height: 19px;
}

.qr-code {
    width: 181px;
    height: 181px;
}

.modal .form-control_textarea {
    height: 214px;
}

@media (max-width: 1370px) {
    #review-modal-overlay .modal-base,
    #add-card-modal .modal-base,
    #update-address-modal .modal-base,
    #add-address-modal .modal-base,
    #checkout-add-address-modal .modal-base,
    #report-profile-modal .modal-base {
        width: 100%;
        margin: 0 78px;
    }
}

@media (max-width: 700px) {

    .modal-base {
        width: 100% !important;
        margin: 0 !important;
        height: 100vh;
        border-radius: 0 !important;
        justify-content: center;
    }

    .toast-base {
        margin: 4em;
    }

}

@media (max-width: 600px) {

    .add-artwork-modal .modal-content {
        width: 100%;
        margin: 0 18px;
        padding: 25px;
    }

    .add-artwork-modal .modal-content {
        margin: 0;
        padding: 0;
    }

}
