.qr-code {
    display: none;
}


input[name="payment-tab"] {
    display: none;
}

.tab-label {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    border: 1px solid #ddd;
    font-weight: bold;
    color: #444;
    transition: background-color 0.3s, border-color 0.3s;
    user-select: none;
}

.tab-label.shining {
    position: relative;
    padding: 10px 20px;
    display: inline-block;
    border-bottom: none;
    animation: shining-text 2s infinite, shining-border 1s infinite;
}

input[name="payment-tab"]:checked+.tab-label {
    background-color: #ffec20;
    border-color: #ddd !important;
    color: #00c3ff !important;
    border-bottom: none;
}

strong.success {
    color: #326000;
}

input#gcash1:checked~.tab-content #gcash1-content,
input#gcash2:checked~.tab-content #gcash2-content,
input#maya:checked~.tab-content #maya-content,
input#gotyme:checked~.tab-content #gotyme-content,
input#paypal:checked~.tab-content #paypal-content,
input#paypal-friend:checked~.tab-content #paypal-friend-content,
input#usdt:checked~.tab-content #usdt-content {
    display: block;
}

.tab-content {
    padding: 20px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 0 5px 5px 5px;
    z-index: -1;
}

.payment-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.payment-form label {
    margin-bottom: 5px;
    color: #a84109;
    font-weight: bold;
}

.payment-form label span {
    color: #da5914;
    font-weight: normal;
}

.payment-form input[type="text"],
.payment-form input[type="number"],
.payment-form select,
.payment-form input[type="file"] {
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.payment-form button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.payment-form button:hover {
    background-color: #45a049;
}

.qr-code h2 {
    text-align: center;
    color: #ffc34e;
    text-shadow: 1px 1px #888888;
    font-size: 2em;
    margin: 0 0 20px;
}

.payment-info {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.instructions {
    font-size: 1.2em;
    margin-left: 20px;
    text-wrap: balance;
}

.instructions ol {
    padding-left: 20px;
    margin: 0 0 20px;
}

.instructions ol li {
    padding-top: 6px;
}

.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    margin-bottom: 10px;
}

.amount-buttons input[type="radio"] {
    margin-right: 10px;
    font-size: 1.2em;
    display: none;
}

.amount-buttons .button-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f0f0f0;
    transition: background-color 0.3s, border-color 0.3s;
    flex: 1 1 calc(50% - 10px);
    box-sizing: border-box;
    user-select: none;
}

.amount-buttons input[type="radio"]:checked+.button-group {
    background-color: #ff9800;
    color: white;
    box-shadow: 5px 5px 10px 0px #888888;
}

.amount-buttons input[type="radio"]:checked+.button-group>.amount-label {
    color: white;
}

.amount-buttons .button-group:hover {
    background-color: #e0e0e0;
}

.amount-buttons .amount-label {
    font-size: 1.4em;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
}

.amount-buttons .bonus {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #4c8baf;
    padding: 5px;
    border-radius: 5px;
    flex-grow: 1;
}

.amount-buttons .bonus .amount {
    color: #ffeb3b;
    font-weight: bold;
    font-size: 1.1em;
}

.amount-buttons .bonus .label {
    color: #ffeb3b;
    font-weight: bold;
    font-size: 0.8em;
    margin-top: 2px;
    text-transform: uppercase;
}

.bonus-bubble {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff9800;
    min-width: 60px;
    color: white;
    padding: 5px 10px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    z-index: 10;
    animation: bounce 1s infinite;
}

.bonus-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #ff9800 transparent transparent transparent;
}

.info-bubble {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #00c3ff;
    min-width: 60px;
    color: white;
    padding: 5px 10px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    z-index: 10;
    animation: bounce 1.2s infinite;
}

.info-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #00c3ff transparent transparent transparent;
}

.topup-bubble {
    position: absolute;
    top: 52px;
    transform: translateX(-50%);
    background-color: #ff9800;
    padding: 1px;
    height: 60px;
    width: 60px;
    text-align: center;
    border-radius: 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: bounce 0.9s infinite;
}

.topup-bubble::after {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #ff9800 transparent;
}

.topup-bubble img {
    width: 100%;
}

.left-bubble {
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translate(-100%, -50%);
    background-color: #03a9f4;
    padding: 10px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: side-bounce 0.9s infinite;
    line-height: 1em;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
    text-transform: uppercase;
}

.left-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #03a9f4;
}

.button.relative {
    position: relative;
}

td.relative {
    position: relative;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes side-bounce {

    0%,
    100% {
        transform: translate(-100%, -50%) translateX(0);
        /* Start at the left-most side */
    }

    50% {
        transform: translate(-100%, -50%) translateX(20px);
        /* Bounce slightly to the right */
    }
}

@keyframes shining-border {
    0% {
        border-color: #ff9800;
    }

    25% {
        border-color: #00ff00;
    }

    50% {
        border-color: #00ccff;
    }

    75% {
        border-color: #ff00ff;
    }

    100% {
        border-color: #ff9800;
    }
}

@keyframes shining-text {
    0% {
        color: #ff9800;
    }

    25% {
        color: #00ff00;
    }

    50% {
        color: #00ccff;
    }

    75% {
        color: #ff00ff;
    }

    100% {
        color: #ff9800;
    }
}

.freebies {
    .grid {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .row-header,
    .row {
        display: flex;
        width: 100%;
    }

    .row-header {
        background-color: #4CAF50;
        color: white;
        font-weight: bold;
    }

    .row-header div,
    .row div {
        flex: 1;
        border: 1px solid #ddd;
        text-align: center;
    }

    .row-header div {
        padding: 10px;
    }

    .row div {
        padding: 0;
    }

    .row:hover div {
        background-color: #f1f1f1;
    }

    .row .overlay {
        display: none;
    }

    .selectable {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        cursor: pointer;
        padding: 15px;
        box-sizing: border-box;
    }

    input[type="radio"] {
        display: none;
    }

    input[type="radio"]:checked+.selectable {
        background-color: #4CAF50;
        color: white;
    }

    ul {
        list-style-type: none;
        padding-left: 0;
        margin: 0;
    }

    li {
        padding: 5px 0;
        font-weight: bold;
        text-align: left;
    }

    .price {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 160px;
        font-size: 2em;
        font-weight: bold;
        color: #daae00;
    }

    .price .description {
        font-size: 0.4em;
    }

    .description {
        display: block;
        font-size: 0.8em;
        font-weight: normal;
    }

    .locked {
        background-color: #f2f2f2;
        color: #929292;
    }

    .locked-row {
        position: relative;
        user-select: none;
        display: flex;
        width: 100%;
    }

    .locked-row div {
        flex: 1;
        border: 1px solid #ddd;
        text-align: center;
        color: #c5c5c5;
    }

    .locked-row .overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 20;
        background-color: rgba(0, 0, 0, 0.7);
        width: 100%;
        height: 100%;
    }

    .locked-row .overlay .label {
        font-size: 20px;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    p {
        font-size: 1.1em;
        color: #5c7d6e;
        /* Slightly muted green for a calm feel */
        margin: 15px 0;
        line-height: 1.5;
        text-align: center;
    }

    /* Style for dropdown select box */
    select[name="char_id"] {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
        border: 2px solid #4CAF50;
        border-radius: 5px;
        font-size: 1em;
        background-color: #fff;
        color: #333;
        cursor: pointer;
    }

    select[name="char_id"]:hover {
        border-color: #45a049;
    }

    .submit-btn {
        display: block;
        margin: 20px auto;
        padding: 10px 20px;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1em;
    }

    .submit-btn:hover {
        background-color: #45a049;
    }
}

.progress-container {
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto !important;
}

.progress-container .unlock-label {
    position: relative;
    font-size: 34px;
    font-weight: bold;
    text-align: center;
    color: #ffc34e;
    text-shadow: 1px 1px #888888;
    margin: 0;
}

.progress-container .progress-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background-color: #ddd;
    border-radius: 10px;
    margin: 60px 0 60px;
}

.progress-container .progress-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #4caf50;
    border-radius: 10px 0 0 10px;

    display: flex;
    justify-content: end;
    align-items: center;
}

.progress-container .progress-indicator span {
    color: black;
    font-weight: bold;
    background-color: #57fc5a;
    border-radius: 10px;
    padding: 0px 5px;
    margin-right: 2px;
    z-index: 20;
    white-space: nowrap;
}

.progress-container .milestone {
    position: absolute;
    transform: translateX(-50%);
}

.progress-container .milestone.reached span {
    background-color: #8dff8f;
    border: 1px solid #409d42;
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
    color: #000000;
}

.progress-container .milestone.reached::before {
    background-color: #409d42 !important;
}

.progress-container .milestone.milestone-top {
    bottom: 34px;
}

.progress-container .milestone.milestone-top::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 2px;
    height: 28px;
    background-color: #333;
}

.progress-container .milestone.milestone-bottom {
    bottom: -24px;
}

.progress-container .milestone.milestone-bottom::before {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 50%;
    width: 2px;
    height: 28px;
    background-color: #333;
}

.progress-container .milestone span {
    background-color: white;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
}

.progress-container .milestone-addon {
    display: flex;
    position: relative;
    margin: 0 0 20px 0;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.progress-container .milestone-addon p {
    font-size: 10px;
}

.progress-container .milestone-addon .add {
    border-radius: 3px;
    border: 1px solid #ccc;
    padding: 5px;
    text-transform: uppercase;
    color: #000000;
    font-size: 0.9em;
    text-wrap: nowrap;
}

.progress-container .milestone-addon .add.reached {
    background-color: #8dff8f;
    border: 1px solid #409d42;
    font-weight: bold;
}

.progress-container .milestone-details {
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 14px;
}

.progress-container .donation-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

.progress-container .donation-form {
    flex: 1 1 calc((100% - 20px) / 3);
}

.progress-container .donation-buttons button {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #f4f4f4;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.progress-container .donation-buttons button:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.progress-container .donation-buttons button:disabled {
    background-color: #d8d8d8;
    border-color: #bbb;
    cursor: not-allowed;
}

.progress-container .donation-form select {
    margin-top: 4px;
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
}

.progress-container .donation-buttons select:disabled {
    cursor: not-allowed;
}

.progress-container .time-left {
    font-size: 10px;
    padding: 8px;
    color: #000000;
    background-color: #8dff8f;
    margin-left: -20px;
}

.progress-container .time-left::after {
    border-color: transparent transparent transparent #8dff8f;
}

.spinwin {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    canvas {
        display: block;
        margin: 0 auto;
    }

    h1 {
        font-size: 2.5em;
        font-weight: bold;
        color: #ff5733;
        margin: 20px 0;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

    h2 {
        font-size: 1.8em;
        font-weight: 600;
        color: #333;
        margin: 15px 0;
        text-align: center;
        border-bottom: 2px solid #ff5733;
        padding-bottom: 5px;
    }

    #arrow {
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 30px solid red;
    }

    #wheelContainer {
        margin-top: 30px;
        position: relative;
        display: flex; 
        justify-content: center; 
    }

    .button-container {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .button-link {
        padding: 10px 20px;
        font-size: 18px;
        color: inherit;
        background-color: #f0f0f0;
        text-align: center;
        text-decoration: none;
        border: 1px solid #ccc;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

    .button-link {
        display: inline-flex;
    }

    .button-link:hover {
        background-color: #e6e6e6;
        border-color: #adadad;
    }

    #changePayType {
        height: 24px;
        aspect-ratio: 1 / 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ccc;
        border-radius: 3px;
        overflow: hidden;
        font-size: 0.8em;
        font-weight: bold;
        color: #ddd;
        background-color: #333;
        border: none;
    }

    #changePayType:hover {
        color: #eee;
        background-color: #444;
    }

    #balanceInfo {
        margin-left: 10px;
        display: flex;
        align-items: center;
    }

    #creditIcon {
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }

    #cashIcon {
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }

    #overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        z-index: 10;
        opacity: 0;
        text-align: center;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }

    #overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }

    #winTitle {
        font-size: 1.2em;
        font-weight: bold;
        margin-bottom: 10px;
    }

    #winText {
        font-size: 2.2em;
        font-style: italic;
        color: #ffd700;
    }

    #winIcon {
        transform: scale(1.5);
        transform-origin: center;
        padding: 16px;
    }

    #closeButton {
        font-size: 1em;
        cursor: pointer;
        padding: 5px 20px;
        margin-top: 20px;
    }

    .confetti {
        position: absolute;
        width: 20px;
        height: 20px;
        background-size: cover;
        opacity: 1;
        animation: fall 2s ease forwards;
        z-index: 50;
    }

    #recentWins {
        margin-top: 30px;
        text-align: center;
        width: 100%;
    }

    #recentWins h2 {
        font-size: 1.8em;
        margin-bottom: 10px;
        color: #333;
    }

    #winsTable {
        width: 100%;
        border-collapse: collapse;
        margin: 0 auto;
        background-color: white;
    }

    #winsTable th,
    #winsTable td {
        border: 1px solid #ddd;
        padding: 12px;
        text-align: center;
    }

    #winsTable th {
        background-color: #f4f4f4;
        color: #333;
        font-size: 1em;
    }

    #winsTable td {
        font-size: 0.9em;
        color: #555;
    }

    #winsTable tr:hover {
        background-color: #f1f1f1;
    }

    #winsTable tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    #winsTable tr:nth-child(odd) {
        background-color: #fff;
    }

    #winsTable form {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #winsTable form select {
        padding: 5px;
        font-size: 14px;
        border-radius: 4px;
        border: 1px solid #ccc;
        margin-right: 10px;
        width: 150px;
    }

    #winsTable form button {
        background-color: #28a745;
        color: white;
        border: none;
        padding: 5px 10px;
        font-size: 14px;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    #winsTable form button:hover {
        background-color: #218838;
    }

    #winsTable .prize-icon {
        width: 30px;
        margin-right: 10px;
        vertical-align: middle;
    }
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* ── instant top-up ──────────────────────────────────────────────────────────
   The tab strip used to supply the panel (.tab-content) the form sat in; with
   tabs gone the form needs its own card, or it floats on the bare page. Colours
   come from theme.css: #b56c3f headers, #947160 button text, parchment golds. */

.topup-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 662px;
    margin: 0 auto;
}

.instant-panel {
    padding: 18px 20px 20px;
    background-color: #fffdf8;
    border: 1px solid #d8c3a5;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.manual-topup {
    padding: 20px;
    background-color: #fffdf8;
    border: 1px solid #d8c3a5;
    border-radius: 6px;
    text-align: center;
}

.manual-topup h2 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
    color: #b56c3f;
}

.topup-options .manual-topup p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5c4b3c;
}

.manual-payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
    margin-top: 18px;
}

.manual-payment-options a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #c9a06a;
    border-radius: 5px;
    background: #f7f2e8;
    color: #80502f;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    text-decoration: none;
}

.manual-payment-options a:hover {
    background: #fff6e6;
    border-color: #b56c3f;
}

.manual-payment-options a:focus-visible {
    outline: 2px solid #b56c3f;
    outline-offset: 3px;
}

.topup-options .topup-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.instant-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    padding: 10px 12px;
    background-color: #f4fbee;
    border: 1px solid #c6e0b4;
    border-radius: 5px;
    color: #326000;
    font-weight: bold;
    font-size: 13px;
    line-height: 1.35;
}

.instant-tagline img {
    width: 28px;
    flex-shrink: 0;
}

/* numbered step heading: small brown caps with a hairline, matching .header h1 */
.instant-pay .step {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e6d8c3;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #b56c3f;
}

.instant-pay .step b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #b56c3f;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}

/* method picker: hidden radios + tappable tiles. Logos keep a white plate so
   the wallet brands (dark Maya, cyan GoTyme) stay legible when selected. */
.pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pay-methods input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pay-methods .pay-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    padding: 12px 8px;
    box-sizing: border-box;
    cursor: pointer;
    background-color: #fff;
    border: 2px solid #ddd0bb;
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    user-select: none;
}

.pay-methods .pay-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.pay-methods .pay-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pay-methods .pay-label {
    font-size: 12px;
    font-weight: bold;
    color: #5c4b3c;
    text-align: center;
    line-height: 1.2;
}

.pay-methods .pay-method:hover {
    border-color: #c9a06a;
    background-color: #fffaf1;
}

/* selected: warm tint + ring + tick, so the choice reads without hiding the logo */
.pay-methods input[type="radio"]:checked + .pay-method {
    position: relative;
    background-color: #fff6e6;
    border-color: #e8890c;
    box-shadow: 0 0 0 1px #e8890c inset, 0 2px 5px rgba(0, 0, 0, 0.15);
}

.pay-methods input[type="radio"]:checked + .pay-method::after {
    content: '\2713';
    position: absolute;
    top: 4px;
    right: 6px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background-color: #e8890c;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
}

.pay-methods input[type="radio"]:focus + .pay-method {
    border-color: #e8890c;
}

.amount-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.amount-presets .preset {
    flex: 1 1 calc(33.333% - 8px);
    padding: 11px 4px;
    font-size: 14px;
    font-weight: bold;
    font-family: inherit;
    color: #5c4b3c;
    cursor: pointer;
    background-color: #fff;
    border: 2px solid #ddd0bb;
    border-radius: 6px;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.amount-presets .preset:hover {
    border-color: #c9a06a;
    background-color: #fffaf1;
}

.amount-presets .preset.selected {
    background-color: #fff6e6;
    border-color: #e8890c;
    color: #a8560a;
    box-shadow: 0 0 0 1px #e8890c inset;
}

/* peso sign sits inside the field so the number lines up with the presets */
.amount-field {
    display: flex;
    align-items: stretch;
    border: 2px solid #ddd0bb;
    border-radius: 6px;
    background-color: #fff;
    overflow: hidden;
}

.amount-field:focus-within {
    border-color: #e8890c;
}

.amount-field .peso {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background-color: #f3ead9;
    color: #8a6a4f;
    font-size: 17px;
    font-weight: bold;
}

.amount-field input[type="number"] {
    flex: 1;
    min-width: 0;
    padding: 12px;
    margin: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    font-weight: bold;
    color: #3f3229;
}

.instant-pay .hint {
    margin: 6px 0 16px;
    font-size: 12px;
    color: #8a7663;
}

/* gold submit, in the theme's palette — the stock .button sprite is fixed-width
   and can't stretch, so this mirrors its colours instead of using it */
.instant-pay .generate {
    display: block;
    width: 100%;
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(#f0a63c, #d4791f);
    border: 1px solid #a8560a;
    border-radius: 6px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: filter 0.15s;
}

.instant-pay .generate:hover {
    filter: brightness(1.07);
}

.instant-pay .generate:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.instant-help {
    margin: 18px 0 0;
    padding: 14px 14px 14px 32px;
    background-color: #f7f2e8;
    border: 1px solid #e6d8c3;
    border-radius: 5px;
    font-size: 13px;
    color: #5c4b3c;
    line-height: 1.5;
}

.instant-help li {
    padding: 3px 0;
}

@media (min-width: 560px) {
    .pay-methods .pay-method {
        flex-basis: calc(25% - 10px);
        max-width: calc(25% - 10px);
    }

    .amount-presets .preset {
        flex-basis: calc(16.666% - 8px);
    }
}
