
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #171d26;
    color: #fff;
    user-select: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cashier {
    width: 100%;
    max-width: 900px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px;
}

.cashier-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #394250;
}

.cashier-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #b9f34a;
    color: #17210a;
    font-size: 36px;
    font-weight: bold;
}

.cashier-title {
    font-size: 28px;
    font-weight: bold;
}

.cashier-subtitle {
    margin-top: 5px;
    color: #a8b2c0;
    font-size: 12px;
    letter-spacing: 1px;
}

.cashier-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 20px;
}

.amount-panel {
    padding: 20px;
    border-radius: 14px;
    background: #242d39;
}

.amount-label {
    color: #a8b2c0;
    font-size: 16px;
}

.amount-display {
    min-height: 55px;
    margin-top: 10px;
    overflow-wrap: anywhere;
    text-align: right;
    color: #b9f34a;
    font-size: clamp(32px, 7vw, 54px);
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.quick-amounts button,
.keyboard button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65px;
    border-radius: 10px;
    background: #303b49;
    color: #fff;
    font-size: 23px;
    font-weight: bold;
    transition: background 0.1s, transform 0.1s;
}

.quick-amounts button:active,
.keyboard button:active {
    background: #526176;
    transform: scale(0.97);
}

.keyboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.keyboard button {
    min-height: 70px;
    font-size: 30px;
}

#backspace {
    background: #49576a;
}

.cashier-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

.cashier-actions button {
    min-height: 65px;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
}

#clear-amount {
    background: #49515d;
    color: #fff;
}

#submit-order {
    background: #b9f34a;
    color: #17210a;
}

#clear-amount:active,
#submit-order:active {
    filter: brightness(0.88);
}

button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}
#kiosk-exit-trigger {
    position: fixed;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    z-index: 99999;
    touch-action: manipulation;
  }

  #kiosk-exit-panel {
    display: none;
    position: fixed;
    top: 70px;
    right: 10px;
    z-index: 100000;
    padding: 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 16px #0003;
  }

  #kiosk-exit-panel button {
    min-height: 56px;
    padding: 12px 20px;
    font-size: 18px;
  }

@media (max-width: 520px) {
    .cashier {
        padding: 12px;
    }

    .cashier-header {
        gap: 10px;
    }

    .cashier-logo {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .cashier-title {
        font-size: 23px;
    }

    .cashier-subtitle {
        font-size: 10px;
    }

    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-amounts button {
        min-height: 58px;
    }

    .keyboard button {
        min-height: 65px;
    }

    .cashier-actions {
        grid-template-columns: 1fr;
    }
}
/* Компактный режим для невысокого экрана */
@media (max-height: 700px) {
    .cashier {
        min-height: 100vh;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .cashier-header {
        padding-bottom: 8px;
    }

    .cashier-logo {
        width: 44px;
        height: 44px;
        font-size: 27px;
    }

    .cashier-title {
        font-size: 23px;
    }

    .cashier-main {
        gap: 10px;
        padding-top: 8px;
    }

    .amount-panel {
        padding: 18px 16px;
    }

    .amount-label {
        font-size: 14px;
    }

    .amount-display {
        min-height: 48px;
        margin-top: 2px;
        font-size: 36px;
    }

    .quick-amounts,
    .keyboard {
        gap: 8px;
    }

    .quick-amounts button {
        min-height: 67px;
    }

    .keyboard button {
        min-height: 0;
        height: clamp(49px, calc((100vh - 390px) / 4), 64px);
    }

    .cashier-actions button {
        min-height: 52px;
    }
}