﻿.blazored-modal-container {
    display: none;
    position: fixed;
    width: 100%;
    /*height: 100%;*/
    z-index: 2002;
}

.blazored-modal-overlay {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2001;
    background-color: rgba(0,0,0,0.5);
}

.blazored-modal-active {
    display: flex;
}

.blazored-modal {
    position: fixed;
    left: 30%;
    top: 30%;
    margin-top: -50px;
    margin-left: -50px;
    max-width: 40%;

/*    display: flex;
    flex-direction: column;*/
    background-color: #fff;
    border-radius: 4px;    
    width:700px;
   /* padding: 1.5rem;*/
    box-shadow: 0 2px 2px rgba(0,0,0,.25);
    z-index: 2003;
}

.blazored-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 0 2rem 0;
    /*background-color: green;*/
    background-color: #005440;
    height: 45px;
}

.blazored-modal-title {
    margin-bottom: 0;
}

.blazored-modal-close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
}

.blazored-modal-center {
    align-items: center;
    justify-content: center;
}

.blazored-modal-wrapper {
    z-index: 2002;
}

.blazored-modal-topleft .blazored-modal-wrapper {
    position: absolute;
    top: 32px;
    left: 32px;
}

.blazored-modal-topright .blazored-modal-wrapper {
    position: absolute;
    top: 32px;
    right: 32px;
}

.blazored-modal-bottomleft .blazored-modal-wrapper {
    position: absolute;
    bottom: 32px;
    left: 32px;
}

.blazored-modal-bottomright .blazored-modal-wrapper {
    position: absolute;
    bottom: 32px;
    right: 32px;
}

.otp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.otp-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 560px;
    width: min(94vw, 560px);
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.otp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #002d72;
}

.otp-modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #4a4a4a;
}

.otp-modal-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.otp-modal .portalButton.portalButtonBrand {
    background-color: #002d72 !important;
    border-color: #002d72 !important;
    color: #fff !important;
}

.otp-modal .portalButton.portalButtonBrand:disabled,
.otp-modal .portalButton.portalButtonBrand[disabled] {
    background-color: #c9c9c9 !important;
    border-color: #c9c9c9 !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: 1;
}

.terms-link {
    text-decoration: underline;
}

.terms-popover-content {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    background: #f3f3f3;
    color: #1f1f1f;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 520px;
}

@media (max-width: 640px) {
    .otp-modal {
        width: 96vw;
        max-width: 96vw;
        padding: 1.25rem;
    }

    .otp-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .otp-modal-actions .portalButton {
        width: 100%;
    }
}
