/*
 * Samsung tablets
 *   11"  1280 x 720
 *   7"   1024 x 600
 * Ranges allow for Android system bars shrinking the CSS viewport.
 * 11" keeps the page layouts and enlarges phone-sized chrome.
 * 7" scales that chrome down so it fits the shorter screen.
 */

/* 11" landscape 1280 x 720, and 11" portrait 720 x 1280 */
@media only screen and (orientation: landscape) and (min-width: 1120px) and (max-width: 1440px) and (max-height: 820px),
       only screen and (orientation: portrait) and (min-width: 701px) and (max-width: 860px) and (min-height: 1100px) {
    .navigation-bar,
    .navigation-bar__line-height,
    .navigation-bar__center,
    .navigation-bar__title,
    .toolbar__center,
    .toolbar__title,
    ons-toolbar .center {
        font-size: 18px;
    }

    .button,
    .button--large,
    .button--default,
    .button--primary,
    .button--info,
    .button--success,
    .button--warning,
    .button--danger,
    .button--inverse,
    .button--normal {
        font-size: 17px;
        line-height: 32px;
        padding: 4px 12px;
    }

    .button--large,
    .button--large--cta {
        line-height: 36px;
        font-size: 17px;
    }

    .button-bar__button,
    .button-bar__button:active,
    :active + .button-bar__button {
        height: 36px;
        line-height: 34px;
        font-size: 15px;
        padding: 0 10px;
    }

    .checkbox,
    .checkbox--noborder,
    .radio-button,
    .switchradio {
        font-size: 16px;
        line-height: 28px;
        margin: 6px 0;
    }

    .checkbox > .checkbox__checkmark,
    .checkbox > .checkbox__checkmark:before,
    .checkbox--noborder > .checkbox__checkmark,
    .checkbox--noborder > .checkbox__checkmark:before,
    .radio-button__checkmark,
    .radio-button__checkmark:before,
    .switchradio__checkmark,
    .switchradio__checkmark:before {
        width: 28px;
        height: 28px;
    }

    .checkbox > .checkbox__checkmark:after,
    .checkbox--noborder > .checkbox__checkmark:after,
    .radio-button__checkmark:after,
    .switchradio__checkmark:after {
        top: 6px;
        left: 5px;
        width: 14px;
        height: 7px;
        border-top-width: 0;
        border-right-width: 0;
        border-bottom-width: 3px;
        border-left-width: 3px;
    }

    .switch {
        width: 56px;
        height: 34px;
        font-size: 16px;
    }

    .switch__input {
        width: 56px;
        height: 44px;
    }

    .switch__toggle:before {
        width: 30px;
        height: 30px;
        top: 2px;
        left: 2px;
    }

    .switch__input:checked + .switch__toggle:before {
        -webkit-transform: translateX(22px);
        transform: translateX(22px);
    }

    .text-input,
    .text-input--underbar,
    input[type="text"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px;
    }

    .tab-bar {
        height: 49px;
    }

    .tab-bar__button {
        height: 49px;
        line-height: 49px;
    }

    .tab-bar__icon + .tab-bar__label {
        font-size: 13px;
    }

    .dialog,
    .alert-dialog {
        font-size: 17px;
    }

    .dialog.fadein {
        top: 4vh;
        left: 50%;
        width: min(420px, 92vw);
        margin-left: 0 !important;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        max-width: 92vw !important;
        max-height: 90vh !important;
        box-sizing: border-box;
    }

    .alert-dialog {
        width: 360px;
        max-width: 88vw;
    }

    .alert-dialog-title {
        font-size: 18px;
    }

    .alert-dialog-content {
        font-size: 16px;
    }

    .alert-dialog-button {
        font-size: 17px;
        height: 48px;
        line-height: 48px;
    }

    .numPadHeader,
    .dialog .numPadHeader,
    .checkoutPadHeader {
        font-size: 17px;
    }

    .dialog-bottom {
        height: 48px;
        line-height: 48px;
    }

    .button--dialog-response {
        min-width: 72px;
        font-size: 16px;
    }

    .upgrade-dialog__panel {
        max-width: min(440px, 88vw);
    }

    .upgrade-dialog__title {
        font-size: 22px;
    }

    .upgrade-dialog__message {
        font-size: 18px;
    }

    .numPad,
    .searchPad,
    .checkoutPad,
    .settlePad,
    .customizationPrompt,
    .qrcodesPad,
    .printerPad,
    .payMeRefundPad {
        left: 50%;
        margin-left: 0;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        max-width: 94vw;
    }

    .numPad,
    .searchPad {
        top: 8vh;
        width: min(400px, 90vw);
        height: min(440px, 84vh);
    }

    .searchPad {
        width: min(450px, 92vw);
        height: min(450px, 84vh);
    }

    .checkoutPad {
        top: 2vh;
        width: min(450px, 92vw);
        height: min(640px, 94vh);
    }

    .settlePad {
        top: 3vh;
        width: min(520px, 94vw);
        height: min(540px, 92vh);
    }

    .customizationPrompt {
        top: 6vh;
        width: min(550px, 94vw);
        height: min(470px, 88vh);
    }

    .qrcodesPad,
    .printerPad {
        top: 6vh;
        height: min(480px, 88vh);
    }

    .payMePad,
    .payMeRefundPad {
        max-width: 94vw;
        width: min(600px, 94vw);
    }

    .login-auth-pad.numPad {
        -webkit-transform: none;
        transform: none;
        top: 4vh;
        margin-left: -210px;
        height: min(520px, 90vh);
    }
}

/* 7" landscape 1024 x 600 */
@media only screen and (orientation: landscape) and (min-width: 960px) and (max-width: 1100px) and (max-height: 680px) {
    html {
        font-size: 14px;
    }

    .navigation-bar,
    .navigation-bar__line-height,
    .navigation-bar__center,
    .navigation-bar__title {
        font-size: 14px;
    }

    .title-label {
        font-size: 16px;
    }

    .tab-bar__icon + .tab-bar__label {
        font-size: 11px;
    }

    .button--default,
    .button--primary,
    .button--info,
    .button--success,
    .button--warning,
    .button--danger,
    .button--inverse,
    .button--normal {
        font-size: 13px;
        font-weight: bold;
        padding: 3px 4px;
    }

    .button--bigger {
        height: auto;
        line-height: 32px;
        font-size: 16px;
        font-weight: 600;
    }

    .button--table-btn {
        width: 84px;
        height: 72px;
        margin: 3px;
        font-size: 12px;
    }

    .tableConfigPad {
        height: 420px;
    }

    .table-tableNumber {
        font-size: 14px;
        bottom: 18px;
    }

    .table-serial-num {
        font-size: 14px !important;
        top: 20px;
    }

    .table-timer {
        font-size: 11px;
        top: 38px;
        left: 4px;
    }

    .table-status {
        font-size: 11px !important;
    }

    .table-top-toolbar {
        padding: 4px 6px;
        gap: 0 4px;
    }

    .table-bar-toggle {
        font-size: 13px;
        padding: 3px 5px;
    }

    /* Nav (~44px) + wrapped toolbar (~2–3 rows) — keep list below toolbar */
    .table-button-list {
        top: 184px;
        padding: 0 8px;
    }

    html.lg-theme .table-button-list {
        top: 124px;
        margin: 0 4px;
    }

    .profile {
        height: 76px;
    }

    .profile .system {
        font-size: 22px;
        top: 10%;
    }

    .profile .user {
        top: 24%;
        font-size: 11px;
    }

    .numPad {
        top: 10%;
        left: 50%;
        width: 340px;
        height: min(340px, 90vh);
        margin-left: -170px;
    }

    .searchPad {
        top: 10%;
        left: 50%;
        width: 380px;
        height: min(460px, 90vh);
        margin-left: -190px;
    }

    .checkoutPad {
        top: 1%;
        left: 50%;
        width: min(380px, 92vw);
        height: min(500px, 96vh);
        margin-left: -190px;
    }

    .settlePad {
        top: 2%;
        left: 50%;
        width: min(460px, 94vw);
        height: min(470px, 96vh);
        margin-left: -230px;
    }

    .settlePadContent {
        height: calc(100% - 80px);
    }

    .customizationPrompt {
        top: 2%;
        left: 50%;
        width: min(460px, 94vw);
        height: min(380px, 92vh);
        margin-left: -230px;
    }

    .qrcodesPad,
    .printerPad {
        top: 4%;
        left: 50%;
        margin-left: -160px;
        height: min(360px, 90vh);
    }

    .checkoutPad-info-panel,
    .payMePad-info-panel {
        font-size: 14px;
        padding: 5px 6px;
    }

    .checkoutPadLabel-amount-large {
        font-size: 24px;
    }

    .checkoutPad-row-large,
    .payMePad-row-large {
        line-height: 28px;
        height: 28px;
    }

    .checkoutPad-btn-row,
    .payMePad-btn-row {
        margin: 3px 0;
    }

    .payment-body {
        top: 110px;
        flex-flow: row nowrap !important;
    }

    /* Same column ratio as 11": info 33% / discount 34% / payment 33% */
    .info-section,
    .payment-section {
        width: 33% !important;
        padding: 5px;
    }

    .discount-section {
        width: 34% !important;
        padding: 5px;
    }

    .heading > h2 {
        font-size: 21px !important;
        margin: 0 10px !important;
    }

    table.payment-detail {
        font-size: 16px !important;
    }

    table.payment-detail td {
        font-size: 16px !important;
        line-height: 1.3 !important;
        padding: 6px !important;
    }

    table.payment-detail .fa-minus,
    table.payment-detail .fa-plus {
        font-size: 14px !important;
        line-height: 22px !important;
    }

    /* 應繳 / 拆帳 */
    table.payment-detail .split-payment-btn {
        font-size: 12px !important;
        height: 32px !important;
        line-height: 20px !important;
        padding: 4px 10px !important;
    }

    /* 付款方式 radio labels + status */
    table.payment-detail label {
        font-size: 14px !important;
    }

    table.payment-detail .split-payment-status {
        font-size: 12px !important;
        top: 10px !important;
    }

    table.payment-detail .split-payment-input {
        font-size: 14px !important;
        width: 90px !important;
    }

    table.payment-detail td span[style*="font-size: 21px"] {
        font-size: 14px !important;
        top: 8px !important;
    }

    .info-section .checkbox {
        font-size: 13px !important;
    }

    .payment-divider {
        font-size: 14px !important;
        padding: 4px 8px !important;
    }

    .payment-method-label {
        font-size: 13px !important;
    }

    .payment-methods button {
        height: 58px;
        font-size: 13px;
    }

    .orderList {
        max-height: calc(100vh - 140px);
    }

    .checkoutOrderList {
        height: calc(100vh - 150px);
        margin-top: 4px;
    }

    .orderDetailList {
        height: calc(100vh - 120px);
        max-height: calc(100vh - 120px);
    }

    .voidOrderList {
        height: calc(100vh - 160px);
    }

    .ordermeal-list {
        padding-top: 72px;
    }

    .ordermeal-orderedlist {
        width: 28%;
        padding: 6px;
    }

    .ordermeal-products {
        width: 71%;
    }

    .ordermeal-orderedlist > h3 {
        font-size: 17px !important;
    }

    .ordermeal-orderedlist > h3 .checkbox {
        font-size: 12px !important;
    }

    .ordermeal-orderinfo {
        font-size: 13px;
    }

    .ordermeal-orderedlist-products {
        top: 100px;
        bottom: 44px;
    }

    .product-button {
        width: 31%;
        height: 128px;
        margin: 3px;
        padding: 3px;
    }

    .product-content {
        height: 100px;
    }

    .product-image {
        min-height: 75px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-price {
        font-size: 16px !important;
    }

    .product-ordered-count,
    .product-cancel {
        font-size: 14px;
    }

    .checkout-head-label {
        font-size: 18px;
    }

    .checkout-scan-hint {
        font-size: 13px;
    }

    .list-item-title.checkout-list-item-title {
        font-size: 18px !important;
        line-height: 18px;
        top: 4px;
    }

    .checkout-list-item-subtitle {
        font-size: 11px !important;
    }

    .checkout-list-item {
        min-height: 48px;
        line-height: 48px;
    }

    .checkout-list-item-action:not(.ios-btn--success):not(.ios-btn--brown):not(.ios-btn--danger),
    .checkout-list-item-action:not(.ios-btn--success):not(.ios-btn--brown):not(.ios-btn--danger) .button,
    .checkout-list-item-action:not(.ios-btn--success):not(.ios-btn--brown):not(.ios-btn--danger) .ios-btn,
    .checkout-list-item-action:not(.ios-btn--success):not(.ios-btn--brown):not(.ios-btn--danger) .toButton {
        font-size: 11px !important;
        line-height: 28px;
        padding: 2px 6px;
    }

    .checkout-list-item-action .button.ios-btn {
        padding: 2px 6px;
    }

    /* 未上甜品 / 已上甜品 — same slot as 結帳/復查; font 21→11; width ×11/21 */
    .checkout-list-item-action.checkout-action--serve-later {
        right: 8px !important;
        bottom: 8px !important;
        top: auto !important;
        padding: 0 !important;
        line-height: 28px !important;
    }

    .checkout-list-item-action .toButton.ios-btn--olive,
    .checkout-list-item-action .toButton.ios-btn--rose {
        font-size: 11px !important;
        width: calc(100px * 11 / 21) !important;
        min-width: 0;
        height: 28px;
        line-height: 28px !important;
        box-sizing: border-box;
        white-space: nowrap;
        float: none !important;
        display: inline-block;
        vertical-align: middle;
        padding-left: 4px;
        padding-right: 4px;
        position: relative;
    }

    /* en inline width is 130px — same font-size ratio */
    .checkout-list-item-action .toButton.ios-btn--olive[style*="130"],
    .checkout-list-item-action .toButton.ios-btn--rose[style*="130"] {
        width: calc(130px * 11 / 21) !important;
    }

    .checkout-list-item-action .toButton.ios-btn--olive span,
    .checkout-list-item-action .toButton.ios-btn--rose span,
    .checkout-list-item-action .ios-btn--olive span,
    .checkout-list-item-action .ios-btn--rose span {
        font-size: 11px !important;
    }

    .checkout-list-item-action .toButton.ios-btn--olive .tab-bar-badge,
    .checkout-list-item-action .toButton.ios-btn--rose .tab-bar-badge {
        top: -6px !important;
        right: -4px !important;
        width: 14px;
        line-height: 14px;
        font-size: 10px;
    }

    .switchPanel .button-bar__button {
        font-size: 11px !important;
        height: 30px !important;
    }

    /* Takeaway: 已取 / 未取 / 準備好 — keep size; only align with 結帳/復查 */
    .checkout-list-item-action.ios-btn--success,
    .checkout-list-item-action.ios-btn--brown,
    .checkout-list-item-action.ios-btn--danger {
        right: 70px !important;
        bottom: 2px !important;
        top: auto !important;
        font-size: 11px !important;
    }

    .checkout-list-item-action.ios-btn--success[style*="90px"],
    .checkout-list-item-action.ios-btn--brown[style*="90px"],
    .checkout-list-item-action.ios-btn--danger[style*="90px"] {
        right: 90px !important;
    }

    /* Takeaway: 未付 — keep font; stay left of 結帳 (do not cover) */
    .notpay-takeaway {
        right: 80px !important;
        top: 0 !important;
        bottom: auto !important;
        line-height: 48px !important;
        transform: none;
        z-index: 2;
        font-size: 16px !important;
    }

    .notpay-takeaway[style*="140px"] {
        right: 140px !important;
    }

    .notpay-takeaway[style*="150px"] {
        right: 150px !important;
    }

    .coupon-bar button,
    .coupon-bar div,
    .coupon-bar div.active,
    .coupon-bar :checked + .button-bar__button {
        font-size: 14px;
        height: 34px;
    }

    /* Slightly narrower than 11" (550px), still usable on 7" */
    .soldoutList {
        min-width: 460px !important;
        width: 460px;
        flex: 0 0 460px;
        max-height: calc(100vh - 100px);
    }

    .orderMeal-product-list {
        min-width: 420px !important;
        width: 420px;
        flex: 0 0 420px;
        max-height: calc(100vh - 100px);
    }

    .lists-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #signCanvas {
        width: 360px;
        height: 200px;
    }

    .biteos-logo {
        height: auto;
        margin: 80px 0 8px;
    }

    .biteos-logo img {
        width: 110px !important;
    }

    .login-message {
        font-size: 15px;
    }

    .upgrade-progress {
        width: 78%;
        margin-top: 8px;
    }

    .upgrade-progress__track {
        height: 12px;
    }

    .upgrade-progress__label {
        font-size: 14px;
        margin-top: 6px;
    }

    .login-button-section {
        bottom: 16px;
    }

    .button--outline {
        height: 44px;
        font-size: 16px;
    }

    .login-auth-pad.numPad {
        top: 2%;
        height: min(460px, 94vh);
        width: min(360px, 90vw);
        margin-left: -180px;
    }

    .upgrade-dialog__title {
        font-size: 18px;
    }

    .upgrade-dialog__message {
        font-size: 15px;
    }
}

/* 7" portrait 600 x 1024 */
@media only screen and (orientation: portrait) and (min-width: 560px) and (max-width: 700px) and (min-height: 900px) {
    html {
        font-size: 15px;
    }

    .button--table-btn {
        width: 92px;
        height: 78px;
        margin: 4px;
    }

    .table-serial-num {
        font-size: 14px !important;
    }

    .table-status {
        font-size: 11px !important;
    }

    /* Narrow portrait: toolbar wraps to more rows */
    .table-button-list {
        top: 260px;
        padding: 0 10px;
    }

    html.lg-theme .table-button-list {
        top: 160px;
        margin: 0 4px;
    }

    .product-button {
        width: 47%;
        height: 140px;
    }

    .product-price {
        font-size: 16px !important;
    }

    .ordermeal-orderedlist > h3 {
        font-size: 12px !important;
    }

    .ordermeal-orderedlist > h3 .checkbox {
        font-size: 11px !important;
    }

    .list-item-title.checkout-list-item-title {
        font-size: 14px !important;
        line-height: 18px;
        top: 4px;
    }

    .checkout-list-item-subtitle {
        font-size: 11px !important;
    }

    .checkout-list-item {
        min-height: 48px;
        line-height: 48px;
    }

    .checkout-list-item-action:not(.ios-btn--success):not(.ios-btn--brown):not(.ios-btn--danger),
    .checkout-list-item-action:not(.ios-btn--success):not(.ios-btn--brown):not(.ios-btn--danger) .button,
    .checkout-list-item-action:not(.ios-btn--success):not(.ios-btn--brown):not(.ios-btn--danger) .ios-btn,
    .checkout-list-item-action:not(.ios-btn--success):not(.ios-btn--brown):not(.ios-btn--danger) .toButton {
        font-size: 11px !important;
        line-height: 28px;
        padding: 2px 6px;
    }

    .checkout-list-item-action .button.ios-btn {
        padding: 2px 6px;
    }

    .checkout-list-item-action.checkout-action--serve-later {
        right: 8px !important;
        bottom: 8px !important;
        top: auto !important;
        padding: 0 !important;
        line-height: 28px !important;
    }

    .checkout-list-item-action .toButton.ios-btn--olive,
    .checkout-list-item-action .toButton.ios-btn--rose {
        font-size: 11px !important;
        width: calc(100px * 11 / 21) !important;
        min-width: 0;
        height: 28px;
        line-height: 28px !important;
        box-sizing: border-box;
        white-space: nowrap;
        float: none !important;
        display: inline-block;
        vertical-align: middle;
        padding-left: 4px;
        padding-right: 4px;
        position: relative;
    }

    .checkout-list-item-action .toButton.ios-btn--olive[style*="130"],
    .checkout-list-item-action .toButton.ios-btn--rose[style*="130"] {
        width: calc(130px * 11 / 21) !important;
    }

    .checkout-list-item-action .toButton.ios-btn--olive span,
    .checkout-list-item-action .toButton.ios-btn--rose span,
    .checkout-list-item-action .ios-btn--olive span,
    .checkout-list-item-action .ios-btn--rose span {
        font-size: 11px !important;
    }

    .checkout-list-item-action .toButton.ios-btn--olive .tab-bar-badge,
    .checkout-list-item-action .toButton.ios-btn--rose .tab-bar-badge {
        top: -6px !important;
        right: -4px !important;
        width: 14px;
        line-height: 14px;
        font-size: 10px;
    }

    .switchPanel .button-bar__button {
        font-size: 11px !important;
        height: 30px !important;
    }

    .checkout-list-item-action.ios-btn--success,
    .checkout-list-item-action.ios-btn--brown,
    .checkout-list-item-action.ios-btn--danger {
        right: 80px !important;
        bottom: 8px !important;
        top: auto !important;
    }

    .checkout-list-item-action.ios-btn--success[style*="90px"],
    .checkout-list-item-action.ios-btn--brown[style*="90px"],
    .checkout-list-item-action.ios-btn--danger[style*="90px"] {
        right: 90px !important;
    }

    .notpay-takeaway {
        right: 90px !important;
        top: 0 !important;
        bottom: auto !important;
        line-height: 48px !important;
        transform: none;
        z-index: 2;
    }

    .notpay-takeaway[style*="140px"] {
        right: 140px !important;
    }

    .notpay-takeaway[style*="150px"] {
        right: 150px !important;
    }

    .ordermeal-list {
        flex-flow: column nowrap;
        padding-top: 88px;
    }

    .ordermeal-orderedlist,
    .ordermeal-products {
        width: 100%;
    }

    .ordermeal-orderedlist {
        height: 32%;
    }

    .payment-body {
        flex-flow: row nowrap !important;
        top: 88px;
    }

    /* Same column ratio as 11" */
    .info-section,
    .payment-section {
        width: 33% !important;
    }

    .discount-section {
        width: 34% !important;
    }

    .heading > h2 {
        font-size: 16px !important;
        margin: 0 10px !important;
    }

    table.payment-detail {
        font-size: 16px !important;
    }

    table.payment-detail td {
        font-size: 16px !important;
        line-height: 1.3 !important;
        padding: 6px !important;
    }

    table.payment-detail .fa-minus,
    table.payment-detail .fa-plus {
        font-size: 14px !important;
        line-height: 22px !important;
    }

    table.payment-detail .split-payment-btn {
        font-size: 12px !important;
        height: 32px !important;
        line-height: 20px !important;
        padding: 4px 10px !important;
    }

    table.payment-detail label {
        font-size: 14px !important;
    }

    table.payment-detail .split-payment-status {
        font-size: 12px !important;
        top: 10px !important;
    }

    table.payment-detail .split-payment-input {
        font-size: 14px !important;
        width: 90px !important;
    }

    table.payment-detail td span[style*="font-size: 21px"] {
        font-size: 14px !important;
        top: 8px !important;
    }

    .info-section .checkbox {
        font-size: 13px !important;
    }

    .payment-divider {
        font-size: 14px !important;
        padding: 4px 8px !important;
    }

    .payment-method-label {
        font-size: 13px !important;
    }

    .numPad,
    .searchPad,
    .checkoutPad,
    .settlePad,
    .customizationPrompt {
        left: 50%;
        top: 8%;
    }

    .numPad,
    .searchPad {
        width: 86vw;
        margin-left: -43vw;
        height: min(420px, 70vh);
    }

    .checkoutPad {
        width: 88vw;
        margin-left: -44vw;
        height: min(620px, 80vh);
    }

    .biteos-logo {
        margin: 40px 0 16px;
    }

    .tableConfigPad {
        height: 480px;
        left: 12%;
    }
}

/* 7" chrome — landscape 1024 x 600 and portrait 600 x 1024 */
@media only screen and (orientation: landscape) and (min-width: 960px) and (max-width: 1100px) and (max-height: 680px),
       only screen and (orientation: portrait) and (min-width: 560px) and (max-width: 700px) and (min-height: 900px) {
    .page,
    ons-page,
    .page__content {
        font-size: 15px;
    }

    .navigation-bar,
    .navigation-bar__line-height,
    .navigation-bar__center,
    .navigation-bar__title,
    .toolbar__center,
    .toolbar__title,
    ons-toolbar .center {
        font-size: 14px;
    }

    .button,
    .button--large,
    .button--default,
    .button--primary,
    .button--info,
    .button--success,
    .button--warning,
    .button--danger,
    .button--inverse,
    .button--normal {
        font-size: 13px;
        line-height: 26px;
        padding: 3px 4px;
    }

    .button--large,
    .button--large--cta {
        line-height: 30px;
        font-size: 14px;
    }

    .button--bigger {
        height: auto;
        line-height: 32px;
        font-size: 16px;
        font-weight: 600;
    }

    .button-bar__button,
    .button-bar__button:active,
    :active + .button-bar__button {
        height: 30px;
        line-height: 28px;
        font-size: 12px;
        padding: 0 6px;
    }

    .checkbox,
    .checkbox--noborder,
    .radio-button,
    .switchradio {
        font-size: 13px;
        line-height: 22px;
        margin: 4px 0;
    }

    .checkbox > .checkbox__checkmark,
    .checkbox > .checkbox__checkmark:before,
    .checkbox--noborder > .checkbox__checkmark,
    .checkbox--noborder > .checkbox__checkmark:before,
    .radio-button__checkmark,
    .radio-button__checkmark:before,
    .switchradio__checkmark,
    .switchradio__checkmark:before {
        width: 22px;
        height: 22px;
    }

    .checkbox > .checkbox__checkmark:after,
    .checkbox--noborder > .checkbox__checkmark:after,
    .radio-button__checkmark:after,
    .switchradio__checkmark:after {
        top: 4px;
        left: 3px;
        width: 11px;
        height: 5px;
        border-top-width: 0;
        border-right-width: 0;
        border-bottom-width: 2px;
        border-left-width: 2px;
    }

    .switch {
        width: 46px;
        height: 28px;
        font-size: 13px;
    }

    .switch__input {
        width: 46px;
        height: 36px;
        margin-top: -4px;
    }

    .switch__toggle:before {
        width: 24px;
        height: 24px;
        top: 2px;
        left: 2px;
    }

    .switch__input:checked + .switch__toggle:before {
        -webkit-transform: translateX(18px);
        transform: translateX(18px);
    }

    .text-input,
    .text-input--underbar,
    input[type="text"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 14px;
    }

    .tab-bar {
        height: 44px;
    }

    .tab-bar__button {
        height: 44px;
        line-height: 44px;
    }

    .tab-bar__button > .tab-bar__icon {
        font-size: 16px;
        line-height: 30px;
        height: 30px;
    }

    .tab-bar__icon + .tab-bar__label {
        font-size: 11px;
    }

    .dialog,
    .alert-dialog {
        font-size: 14px;
    }

    .dialog.fadein {
        top: 3vh !important;
        left: 50% !important;
        width: min(340px, 94vw);
        margin-left: 0 !important;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        max-width: 94vw !important;
        max-height: 92vh !important;
        box-sizing: border-box;
    }

    .alert-dialog {
        width: 280px;
        max-width: 90vw;
    }

    .alert-dialog-title {
        font-size: 16px;
    }

    .alert-dialog-content {
        font-size: 14px;
        padding: 4px 10px 6px;
    }

    .alert-dialog-button {
        font-size: 15px;
        height: 40px;
        line-height: 40px;
    }

    .numPadHeader,
    .dialog .numPadHeader,
    .checkoutPadHeader {
        height: 28px;
        line-height: 28px;
        font-size: 14px;
        padding: 4px;
    }

    .dialog-bottom {
        height: 40px;
        line-height: 40px;
        padding: 4px;
    }

    .button--dialog-response {
        min-width: 60px;
        width: auto;
        font-size: 13px;
    }

    .upgrade-dialog__panel {
        max-width: min(360px, 90vw);
        padding: 16px 14px;
    }

    .upgrade-dialog__title {
        font-size: 18px;
    }

    .upgrade-dialog__message {
        font-size: 15px;
    }

    .payMePad,
    .payMeRefundPad {
        left: 50%;
        margin-left: 0;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        width: min(560px, 96vw);
        max-width: 96vw;
        max-height: 94vh;
    }

    .button--table-btn {
        font-size: 12px;
    }
}
