.checkout-intro {
    margin-top: 8px;
    margin-bottom: 0;
}

.checkout-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.capsule-field,
.select-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.capsule-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    padding-left: 6px;
}

.capsule-input,
.checkout-select {
    width: 100%;
    min-height: 42px; /* ↓ kisebb, elegánsabb */
    padding: 0 16px;
    font-size: 15px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #1b1526;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform .18s ease, box-shadow .18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.capsule-input::placeholder {
    color: #8d8797;
    font-weight: 500;
}

.capsule-input:focus,
.checkout-select:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.select-wrap {
    position: relative;
}

.checkout-select {
    padding-right: 52px;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-52%);
    pointer-events: none;
    color: #6e657f;
    font-size: 18px;
    font-weight: 700;
}

.tip-bubbles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.tip-bubble {
    position: relative;
    display: block;
    cursor: pointer;
}

.tip-bubble input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tip-bubble-inner {
    min-height: 60px;
    border-radius: 18px;
    gap: 2px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tip-bubble-inner strong {
    font-size: 16px;
    line-height: 1;
    color: var(--text);
}

.tip-bubble-inner small {
    font-size: 12px;
    line-height: 1;
    color: var(--muted);
}

.tip-bubble input:checked + .tip-bubble-inner {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.32), rgba(255, 159, 28, 0.18));
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.tip-bubble input:checked + .tip-bubble-inner strong,
.tip-bubble input:checked + .tip-bubble-inner small {
    color: #fff;
}

.payment-subsection {
    margin-top: 16px;
}

.payment-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.payment-choice {
    position: relative;
    cursor: pointer;
}

.payment-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-choice span {
    min-height: 50px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    transition: all .18s ease;
}

.payment-choice input:checked + span {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

.payment-check {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 10px;
}

.payment-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-check-box {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    flex: 0 0 22px;
    position: relative;
}

.payment-check input:checked + .payment-check-box {
    background: var(--orange);
    border-color: var(--orange);
}

.payment-check input:checked + .payment-check-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #1b1526;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.payment-check-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-check-text strong {
    color: var(--text);
    font-size: 15px;
}

.payment-check-text small {
    color: var(--muted);
    font-size: 12px;
}

.payment-summary {
    margin-top: 10px;
    display: grid;
    gap: 12px;
}

.payment-summary-row,
.payment-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-summary-row {
    color: var(--muted);
    font-size: 15px;
}

.payment-summary-row strong {
    color: var(--text);
    font-size: 15px;
}

.payment-summary-total {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.payment-summary-total strong {
    font-size: 24px;
}

@media (max-width: 380px) {
    .tip-bubbles {
        grid-template-columns: 1fr;
    }
}

#paymentScreen {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    
}

#paymentScreen .menu-section {
    width: 100%;
    box-sizing: border-box;
}

#taxNumberField {
    transition: all 0.25s ease;
}

#taxNumberField[hidden] {
    opacity: 0;
    transform: translateY(-6px);
}

.payment-tax-field {
    overflow: hidden;
}

.payment-tax-field.is-hidden {
    display: none;
}

.payment-subsection.is-hidden,
.payment-tax-field.is-hidden {
    display: none;
}

.back-to-order {
    width: 50%;
    min-height: 44px;

    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);

    color: var(--muted);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: all 0.15s ease;
}

.back-to-order small {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

.back-to-order:active {
    transform: scale(0.98);
}

.back-to-order:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.jump-to-products {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.jump-to-products:active {
    transform: scale(0.985);
}

.jump-to-products:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
}

.jump-to-products-arrow {
    font-size: 16px;
    opacity: 0.8;
}
.checkout-products {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.checkout-product-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.checkout-product-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.checkout-product-main strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.checkout-product-main small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.checkout-product-price {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    padding-top: 1px;
}

#productsSection {
    padding-bottom: 80px;
    width: 100%;
    max-width: 670px;
    margin: 0 auto;
}

.checkout-products,
.checkout-product-row,
.checkout-product-main,
.checkout-product-price {
    box-sizing: border-box;
}

.checkout-product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

/* mennyiség állító */
.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-value {
    min-width: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}

/* ár */
.checkout-product-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}

/* kuka */
.remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 80, 80, 0.12);
    color: #ff6b6b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:active {
    transform: scale(0.9);
}

.checkout-product-row {
    flex-wrap: wrap;
}

.checkout-product-main {
    flex: 1 1 100%;
}

.checkout-product-actions {
    width: 100%;
    justify-content: space-between;
}

.lang-wrapper {
    position: relative;
}

/* dropdown panel */
.lang-dropdown {
    position: absolute;
    right: 0;
    top: 48px;

    min-width: 200px;
    max-height: 660px;
    overflow-y: auto;

    background: rgba(27, 21, 38, 0.95);
    border-radius: 18px;
    padding: 6px;

    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);

    display: none;
    flex-direction: column;
    gap: 4px;

    z-index: 50;
}

/* scroll szépítés */
.lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
}

/* gombok */
.lang-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    border: none;
    background: transparent;
    color: var(--text);

    padding: 10px 12px;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.lang-dropdown button:hover {
    background: rgba(255,255,255,0.08);
}

.lang-dropdown button:active {
    transform: scale(0.98);
}

/* aktív */
.lang-dropdown button.active {
    background: rgba(255,255,255,0.14);
}

/* belső elemek */
.flag {
    font-size: 16px;
}

.code {
    font-weight: 800;
    width: 26px;
    opacity: 0.9;
}

.name {
    opacity: 0.85;
}

/* nyitott állapot */
.lang-dropdown.show {
    display: flex;
}