/* SALAMGUARD_GLOBAL_V1 */

.salamguard-widget {
    direction: rtl;
    width: 100%;
    max-width: 470px;
    margin: 18px auto 20px;
    padding: 0;
    font-family: inherit;
    box-sizing: border-box;
    clear: both;
}

.salamguard-box {
    position: relative;
    width: 100%;
    padding: 15px 16px 13px;
    border: 1px solid #d8e2ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 5px 18px rgba(15, 23, 42, .06),
        0 1px 2px rgba(15, 23, 42, .04);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
    box-sizing: border-box;
}

.salamguard-box:hover {
    border-color: #b9c9da;
    box-shadow:
        0 7px 22px rgba(15, 23, 42, .08),
        0 1px 2px rgba(15, 23, 42, .04);
}

.salamguard-box.sg-working {
    border-color: #88b6e8;
    background: #fbfdff;
}

.salamguard-box.sg-ok {
    border-color: #62c58d;
    background: #fbfffc;
}

.salamguard-box.sg-error {
    border-color: #e69b9b;
    background: #fffafa;
}

.salamguard-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.salamguard-check {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid #718096;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    outline: none;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    transition:
        border-color .18s ease,
        background .18s ease,
        transform .12s ease;
}

.salamguard-check:hover {
    border-color: #2f80d0;
}

.salamguard-check:active {
    transform: scale(.94);
}

.salamguard-check:focus-visible {
    box-shadow: 0 0 0 4px rgba(47, 128, 208, .15) !important;
}

.sg-working .salamguard-check {
    cursor: wait;
    border-color: #2f80d0;
}

.sg-ok .salamguard-check {
    border-color: #25a45a;
    background: #25a45a;
}

.sg-ok .salamguard-check::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 13px;
    right: 8px;
    top: 4px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.salamguard-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.salamguard-title {
    display: block;
    margin: 0;
    color: #273444;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 600;
    text-align: right;
}

.salamguard-status {
    display: block;
    min-height: 20px;
    margin-top: 2px;
    color: #718096;
    font-size: 12px;
    line-height: 1.7;
    text-align: right;
}

.sg-working .salamguard-status {
    color: #337ab7;
}

.sg-ok .salamguard-status {
    color: #218c4d;
    font-weight: 600;
}

.sg-error .salamguard-status {
    color: #b33a3a;
}

.salamguard-percent {
    flex: 0 0 42px;
    min-width: 42px;
    color: #66788a;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: left;
    direction: ltr;
}

.sg-ok .salamguard-percent {
    color: #218c4d;
    font-weight: 700;
}

.salamguard-track {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 5px;
    margin-top: 11px;
    border-radius: 99px;
    background: #edf2f7;
}

.salamguard-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #3a7fc4,
        #55a7e8
    );
    transition: width .12s linear;
}

.sg-ok .salamguard-bar {
    background: linear-gradient(
        90deg,
        #1f9d55,
        #55c985
    );
}

.salamguard-note {
    margin-top: 8px;
    color: #98a6b5;
    font-size: 10px;
    line-height: 1.5;
    text-align: right;
}

@media (max-width: 600px) {
    .salamguard-widget {
        max-width: none;
        margin: 16px 0 18px;
    }

    .salamguard-box {
        padding: 13px 14px 12px;
        border-radius: 12px;
    }

    .salamguard-title {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .salamguard-box,
    .salamguard-check,
    .salamguard-bar {
        transition: none !important;
    }
}

/* SALAMGUARD HOLD-TO-VERIFY V2 */

.salamguard-check {
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
}

.salamguard-check:active {
    transform: scale(.92);
    border-color: #2379c8;
    background: #f4f9ff;
}

.sg-working .salamguard-check {
    transform: scale(.96);
}

