.pharmacy-screen-mode-control {
    display: flex;
    align-items: center;
    margin-inline-end: .35rem;
}

.pharmacy-screen-mode-button {
    position: relative;
    display: inline-flex;
    min-width: 218px;
    height: 44px;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 7px;
    border: 1px solid #dce7ec;
    border-radius: 13px;
    color: #274354;
    background: linear-gradient(135deg, #fff, #f7fafb);
    box-shadow: 0 5px 14px rgba(24, 58, 73, .06);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.pharmacy-screen-mode-button:hover {
    border-color: #bcd5db;
    box-shadow: 0 9px 20px rgba(24, 58, 73, .11);
    transform: translateY(-1px);
}

.pharmacy-screen-mode-button:focus-visible {
    outline: 3px solid rgba(98, 91, 246, .22);
    outline-offset: 2px;
}

.pharmacy-screen-mode-button:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.pharmacy-screen-mode-button__icon {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(145deg, #625bf6, #4c45d5);
    box-shadow: 0 7px 16px rgba(98, 91, 246, .24);
}

.pharmacy-screen-mode-button__icon .ti-device-desktop {
    font-size: 18px;
}

.pharmacy-screen-mode-button__icon .ti-arrows-maximize {
    position: absolute;
    right: 3px;
    bottom: 2px;
    padding: 1px;
    border-radius: 4px;
    font-size: 9px;
    background: #0dbf92;
}

.pharmacy-screen-mode-button__copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.pharmacy-screen-mode-button__copy strong {
    overflow: hidden;
    max-width: 154px;
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pharmacy-screen-mode-button__copy small {
    margin-top: 3px;
    color: #8a9ba6;
    font-size: 10px;
    font-weight: 650;
}

.pharmacy-screen-mode-button__state {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a9b6bd;
    box-shadow: 0 0 0 4px rgba(169, 182, 189, .13);
}

.pharmacy-screen-mode-button.is-restore {
    border-color: #f4d597;
    color: #7a5612;
    background: linear-gradient(135deg, #fffdf8, #fff8e9);
}

.pharmacy-screen-mode-button.is-restore .pharmacy-screen-mode-button__icon {
    background: linear-gradient(145deg, #f2ad34, #d88b10);
    box-shadow: 0 7px 16px rgba(216, 139, 16, .22);
}

.pharmacy-screen-mode-button.is-restore .pharmacy-screen-mode-button__state {
    background: #eda62e;
    box-shadow: 0 0 0 4px rgba(237, 166, 46, .15);
}

.pharmacy-screen-mode-button.is-active {
    border-color: #9fe4d3;
    color: #075d4c;
    background: linear-gradient(135deg, #f5fffc, #eafaf5);
}

.pharmacy-screen-mode-button.is-active .pharmacy-screen-mode-button__icon {
    background: linear-gradient(145deg, #0dbf92, #078a70);
    box-shadow: 0 7px 16px rgba(13, 191, 146, .24);
}

.pharmacy-screen-mode-button.is-active .pharmacy-screen-mode-button__icon .ti-arrows-maximize {
    background: #625bf6;
}

.pharmacy-screen-mode-button.is-active .pharmacy-screen-mode-button__state {
    background: #0dbf92;
    box-shadow: 0 0 0 4px rgba(13, 191, 146, .15);
    animation: pharmacy-screen-pulse 2s ease-in-out infinite;
}

html.informary-screen-shell,
html.informary-screen-shell body {
    overflow: hidden !important;
}

.informary-screen-frame {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #f4f7fa;
}

.informary-screen-loader {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    display: grid;
    place-items: center;
    color: #315063;
    background: #f4f7fa;
    transition: opacity .22s ease, visibility .22s ease;
}

.informary-screen-loader.is-ready {
    visibility: hidden;
    opacity: 0;
}

.informary-screen-loader__card {
    display: flex;
    width: min(360px, calc(100% - 40px));
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border: 1px solid #dce7ec;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(23, 60, 76, .13);
}

.informary-screen-loader__mark {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #625bf6, #0dbf92);
}

.informary-screen-loader__mark::after {
    position: absolute;
    width: 51px;
    height: 51px;
    border: 2px solid rgba(98, 91, 246, .19);
    border-top-color: #625bf6;
    border-radius: 50%;
    content: "";
    animation: pharmacy-screen-spin .9s linear infinite;
}

.informary-screen-loader strong { display: block; margin-bottom: 4px; font-size: 14px; }
.informary-screen-loader small { color: #8496a2; font-size: 12px; }

.pharmacy-screen-toast {
    position: fixed;
    z-index: 2147483640;
    right: 22px;
    bottom: 22px;
    display: flex;
    max-width: min(420px, calc(100% - 32px));
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border: 1px solid #f3c8c8;
    border-radius: 13px;
    color: #8c2f35;
    background: #fff5f5;
    box-shadow: 0 16px 42px rgba(80, 27, 32, .16);
    font-size: 13px;
    font-weight: 700;
}

html[data-bs-theme="dark"] .pharmacy-screen-mode-button {
    border-color: #3a4a55;
    color: #dce8ed;
    background: linear-gradient(135deg, #222e36, #1c282f);
}

html[data-bs-theme="dark"] .pharmacy-screen-mode-button__copy small { color: #91a3ae; }
html[data-bs-theme="dark"] .pharmacy-screen-mode-button.is-active { border-color: #167f6b; color: #aef1df; background: #143a34; }
html[data-bs-theme="dark"] .pharmacy-screen-mode-button.is-restore { border-color: #80622e; color: #f2ce86; background: #392f1f; }

@keyframes pharmacy-screen-spin { to { transform: rotate(360deg); } }
@keyframes pharmacy-screen-pulse { 50% { box-shadow: 0 0 0 7px rgba(13, 191, 146, .05); } }

@media (max-width: 1199.98px) {
    .pharmacy-screen-mode-button { min-width: 44px; width: 44px; padding: 5px; }
    .pharmacy-screen-mode-button__copy,
    .pharmacy-screen-mode-button__state { display: none; }
}

@media (max-width: 575.98px) {
    .pharmacy-screen-mode-control { margin-inline-end: 0; }
    .pharmacy-screen-mode-button { width: 40px; min-width: 40px; height: 40px; border-radius: 11px; }
    .pharmacy-screen-mode-button__icon { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .pharmacy-screen-mode-button,
    .informary-screen-loader,
    .pharmacy-screen-mode-button__state { transition: none; animation: none !important; }
}
