/* Prime Store v254 — trusted device login and compact device management. */
.auth-remember-device-v254 {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 2px 0 4px;
    padding: 11px 12px;
    border: 1px solid #dce6f2;
    border-radius: 14px;
    background: #f7faff;
    cursor: pointer;
    user-select: none;
}
.auth-remember-device-v254 input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.auth-remember-check-v254 {
    position: relative;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid #aebdce;
    border-radius: 7px;
    background: #fff;
    transition: .18s ease;
}
.auth-remember-device-v254 input:checked + .auth-remember-check-v254 {
    border-color: #ff3158;
    background: #ff3158;
    box-shadow: 0 6px 16px rgba(255,49,88,.18);
}
.auth-remember-device-v254 input:checked + .auth-remember-check-v254::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.auth-remember-device-v254 input:focus-visible + .auth-remember-check-v254 {
    outline: 3px solid rgba(38,114,255,.18);
    outline-offset: 2px;
}
.auth-remember-device-v254 > span:last-child { display: grid; gap: 2px; min-width: 0; }
.auth-remember-device-v254 b { color: #142033; font-size: 14px; line-height: 1.25; }
.auth-remember-device-v254 small { color: #718096; font-size: 12px; line-height: 1.35; }
.auth-remember-note-v254 {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: -2px 0 14px;
    padding: 10px 12px;
    border-radius: 13px;
    background: #ecfbf4;
    color: #116b49;
}
.auth-remember-note-v254 > span {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #c9f3df;
    font-weight: 900;
}
.auth-remember-note-v254 p { display: grid; gap: 2px; margin: 0; }
.auth-remember-note-v254 b { font-size: 13px; }
.auth-remember-note-v254 small { color: #4e806d; font-size: 12px; line-height: 1.35; }

.trusted-devices-v254 { display: grid; gap: 13px; }
.trusted-devices-head-v254 {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}
.trusted-devices-head-v254 h2 { margin: 0 0 4px; font-size: 18px; }
.trusted-devices-head-v254 p { margin: 0; color: #718096; font-size: 13px; line-height: 1.4; }
.trusted-devices-head-v254 > span {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef3f9;
    color: #52627a;
    font-weight: 800;
}
.trusted-device-list-v254 { display: grid; gap: 8px; }
.trusted-device-row-v254 {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px;
    border: 1px solid #e1e9f2;
    border-radius: 13px;
    background: #f9fbfd;
}
.trusted-device-icon-v254 {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eaf1f9;
    color: #17314f;
    font-size: 15px;
}
.trusted-device-row-v254 > div { display: grid; gap: 2px; min-width: 0; }
.trusted-device-row-v254 b {
    overflow: hidden;
    color: #172238;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.trusted-device-row-v254 small { color: #7a879b; font-size: 11px; line-height: 1.3; }
.trusted-device-row-v254 form { margin: 0; }
.trusted-device-row-v254 button {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid #d8e1ec;
    border-radius: 9px;
    background: #fff;
    color: #c72543;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.trusted-device-row-v254 button:hover { border-color: #ff8da3; background: #fff5f7; }
.trusted-devices-all-v254 { margin: 0; }
.trusted-devices-all-v254 .btn { min-height: 42px; font-size: 13px; }
.trusted-devices-empty-v254,
.trusted-devices-migration-v254 {
    padding: 11px 12px;
    border-radius: 12px;
    background: #f5f8fc;
    color: #627189;
    font-size: 12px;
    line-height: 1.45;
}
.trusted-devices-migration-v254 { background: #fff7e8; color: #805b18; }
.trusted-devices-migration-v254 code { overflow-wrap: anywhere; }

@media (max-width: 720px) {
    .auth-remember-device-v254 { padding: 10px; }
    .trusted-device-row-v254 { grid-template-columns: 32px minmax(0,1fr); }
    .trusted-device-row-v254 form { grid-column: 2; }
    .trusted-device-row-v254 button { width: 100%; }
}

/* Prime Store v254.1 — robust compact checkbox hotfix.
   Native checkbox is used intentionally: global mobile input rules cannot stretch it. */
.auth-card .auth-remember-device-v254 {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    column-gap: 11px !important;
    row-gap: 0 !important;
    align-items: start !important;
    margin: 2px 0 14px !important;
    padding: 12px 14px !important;
}
.auth-card .auth-remember-device-v254 input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: auto !important;
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    box-shadow: none !important;
    accent-color: #ff3158;
    cursor: pointer;
}
.auth-card .auth-remember-device-v254 input[type="checkbox"]:focus,
.auth-card .auth-remember-device-v254 input[type="checkbox"]:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
    outline: 3px solid rgba(255,49,88,.16) !important;
    outline-offset: 2px !important;
}
.auth-card .auth-remember-check-v254 {
    display: none !important;
}
.auth-card .auth-remember-device-v254 > span:last-child {
    grid-column: 2 !important;
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
}
.auth-card .auth-remember-device-v254 b {
    font-size: 14px !important;
    line-height: 1.25 !important;
}
.auth-card .auth-remember-device-v254 small {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

@media (max-width: 720px) {
    .auth-card .auth-remember-device-v254 {
        grid-template-columns: 19px minmax(0, 1fr) !important;
        column-gap: 10px !important;
        padding: 11px 12px !important;
    }
    .auth-card .auth-remember-device-v254 input[type="checkbox"] {
        width: 17px !important;
        min-width: 17px !important;
        max-width: 17px !important;
        height: 17px !important;
        min-height: 17px !important;
        max-height: 17px !important;
    }
}
