@charset "utf-8";

.msg-box {
    display: block;
    width: 100%;
    position: fixed;
    bottom: -100px;
    right: 0;
    padding: 20px;
    box-sizing: border-box;
    background: #3f3f3fdd;
    color: #ecf0f1;
    z-index: 999999;
    transition: all 0.4s ease-in-out;
}

.msg-box .msg-text {
    display: inline-block;
    width: calc(100% - 120px);
    vertical-align: middle;
    padding: 5px 0;
}

.msg-box .msg-close {
    float: left;
    display: inline-block;
    vertical-align: middle;
    padding: 5px 20px;
    border-radius: 5px;
    cursor: pointer;
    color: #e74c3c;
}

.msg-box .msg-close:active,
.msg-box .msg-close:hover {
    background: #e74c3c;
    color: #ecf0f1;
}

.black {
    display: none;
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    top: 0;
    right: 0;
    z-index: 10;
}

.alert {
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(66, 49, 140, 0.10);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    background: #fff;
    border: 2px solid #2c2d34;
    display: none;
    position: fixed;
    top: 10vh;
    right: 0;
    left: 0;
    z-index: 20;
    padding: 0 0 20px 0;
    width: calc(100% - 20px);
    opacity: 0.0;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.alert .icon {
    display: block;
    text-align: center;
    padding: 5px 0 10px 0;
    font-size: 40px;
}

.alert input {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: none;
}

.alert .title {
    padding: 0px 15px;
    font-weight: 600;
    font-size: 14pt;
    color: #252b4d;
    text-align: center;
}

.alert .text {
    margin: 10px 0 25px 0;
    padding: 0 6px;
    text-align: center;
    font-size: 11pt;
    font-weight: normal;
}



.alert .positive-btn:hover,
.alert .negative-btn:hover {
    color: #2d8ac7;
}

.alert .positive-btn {
    color: #2d8ac7;
}

.alert .alert_img {
    max-width: 100%;
    max-height: 100%;
}
@media screen and (min-width: 546px) {
    .alert .positive-btn,
.alert .negative-btn {
    text-align: center;
    padding: 10px;
    font-size: 12pt;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    margin: 0 10px;
}
}
@media screen and (max-width: 545px) {
    .alert .positive-btn,
    .alert .negative-btn {
        text-align: center;
        padding: 10px;
        font-size: 10pt;
        cursor: pointer;
        font-weight: bold;
        display: inline-block;
        margin: 0 10px;
    }
}

/* ===== Modern alert / confirm modal (global, applies site-wide) ===== */
.black {
    background: rgba(20, 28, 40, .45) !important;
    backdrop-filter: blur(2px);
}

.alert {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25) !important;
    padding: 28px 26px !important;
    max-width: 380px;
}

.alert .title {
    font-weight: 700;
    font-size: 16pt;
    color: #1f2233;
}

.alert .text {
    color: #5a5f73;
    line-height: 1.6;
}

.alert .positive-btn,
.alert .negative-btn,
.alert .btn-alert {
    text-align: center;
    border-radius: 11px !important;
    font-weight: 600 !important;
    padding: 10px 29px !important;
    margin: 0 8px !important;
    transition: background .2s ease, color .2s ease, transform .12s ease;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.alert .positive-btn {
    background: #2e7d50 !important;
    color: #ffffff !important;
    min-width: 108px;
    box-shadow: 0 4px 10px rgba(46, 125, 80, .30) !important;
}

.alert .positive-btn:hover {
    background: #256a43 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.alert .negative-btn {
    background: #ffffff !important;
    color: #5a5f73 !important;
    border: 1.5px solid #d8dcec !important;
    min-width: 90px;
}

.alert .negative-btn:hover {
    background: #f4f6fb !important;
    color: #2e7d50 !important;
    transform: translateY(-1px);
}

/* Inputs & dropdowns inside the alert (styled like the register page) */
.alert input,
.alert select {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 6px auto 10px auto !important;
    padding: 11px 12px !important;
    border: 1.5px solid #2e7d50 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1f2233 !important;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    text-align: center;
    letter-spacing: .2px;
    opacity: 1 !important;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Long values like wallet addresses: fit the full address in the field */
.alert input {
    font-family: 'Courier New', monospace;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0 !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    text-overflow: ellipsis;
}

.alert input:focus {
    text-overflow: clip;
}

/* Wallet address field: extend left & right for more breathing room */
.alert input#wallet {
    margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
    max-width: none !important;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
}

.alert input:focus,
.alert select:focus {
    outline: none;
    border-color: #2e7d50 !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 80, .15);
}