/* SPEY RIVER FARM - CHECKOUT */

:root {
    --green: #4b5945;
    --cream: #f5f1e8;
    --ink: #33372f;
    --line: #d7d0c2;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    color; var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

.checkout-page {
    min-height: 100vh;
    padding: 35px 24px 45px;

    background-image:
        linear-gradient(
            rgba(25, 30, 22, 0.18),
            rgba(25, 30, 22, 0.28)
        ),
        url("/static/images/background.jpg");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* SRF LOGO */

.srf-header {
    text-align: center;
    margin: 0 auto 35px;
}

.srf-logo {
    display: block;
    width: min(440px, 85%);
    height: auto;
    margin: auto;
}

/* CHECKOUT PANEL */

.checkout-card {
    width: min(100%, 780px);
    margin: 0 auto;
    padding: 48px 55px;

    background: rgba(250, 247, 240, 0.60);
    border: none;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.13);
}

.checkout-card h1 {
    margin: 0 0 40px;
    color: var(--green);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 400;
    letter-spacing: 0.025em;
}

/* ORDER DETAILS */

.order-row,
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}

.order-row {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.total-row {
    padding: 25px 0 35px;
    font-size: 18px;
}

.total-row strong {
    color: var(--green);
    font-size: 25px;
    font-weight: 500;
}

/* PAYMENT */

.payment-details {
    border-top: 1px solid var(--line);
    padding-top: 30px;
}

.eyebrow {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    color: var(--green);
}

.payment-intro {
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.7;
}

.payment-options {
    display: grid;
    grid-template-columns: 160px;
    justify-content: center;
    gap: 10px;
}

.payment-options button {
    padding: 8px 12px;
    box-sizing: border-box;
    width: 160px;
    height: 48px;
    background: transparent;
    color: var(--green);

    border: 1px solid var(--green);
    border-radius: 3px;

    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0.04em;
    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.payment-options button img {
    display: block;
    width: auto;
    height: 30px;
    max-width: 100%;
    object-fit: contain;
}

.payment-options button:hover {
    background: var(--green);
    color: white;
}

.payment-options button:focus-visible {
    outline: 3px solid #a38b61;
    outline-offset: 3px;
}

/* FOOTER */

.srf-footer {
    margin: 60px auto 0;
    text-align: center;
    color: white;
}

.srf-footer p {
    margin: 0 0 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.highland-cow {
    display: block;
    width: 125px;
    max-width: 40%;
    height: auto;
    margin: 0 auto;
}

/* MOBILE */

@media (max-width: 600px) {

    .checkout-page {
        padding: 22px 15px 35px;
        background-attachment: scroll;
}

.srf-header {
    margin-bottom: 25px;
}

.srf-logo {
    width: min(310px 95%);
}

.checkout-card {
    padding: 32px 23px;
}

.checkout-card h1 {
    margin-bottom: 30px;
    font-size: 40px;
}

.order-row {
    font-size: 13px;
}

.payment-options button {
    padding: 15px 8px;
    font-size: 13px;
}

.srf-footer {
    margin-top: 35px;
}
}

/* PAYMENT PANEL */

.payment-details {
    max-width: 520px;
    margin: 0 auto;
    padding: 30px 35px;
    background: rgba(255, 253, 248, 0.97);
    color: #29352e;
    box-sizing: border-box;
}

.payment-options button {
    color: #29352e;
    background: #fffdf8;
    border: 1px solid #a6aea5;
}


/* Frosted ivory checkout panels */
.checkout-card,
.payment-details {
    background: rgba(255, 253, 247, 0.40);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: none;
}

/* Join checkout and payment into one visual panel */
.checkout-card {
    margin-bottom: 0;
    border-bottom: none;
}

.payment-details {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    border-top: none;
}


/* Align checkout and payment panels */
.checkout-card,
.payment-details {
    width: 520px;
    max-width: calc(100% - 30px);
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.checkout-card {
    margin-bottom: 0;
}

.payment-details {
    margin-top: 0;
}

/* Unified frosted checkout panel */
.checkout-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    box-sizing: border-box;
    background: rgba(255, 253, 247, 0.60);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.checkout-card .payment-details {
    width: 100%;
    max-width: none;
    margin: 25px 0 0;
    padding: 25px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(41, 53, 46, 0.18);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Darken branding and footer cow */
.srf-logo,
.highland-cow {
    filter: brightness(0.45);
}

/* White footer lettering */
.srf-footer p {
    color: #ffffff !important;
}

/* Checkout heading wordmark */
.checkout-heading {
    margin: 0 0 40px;
}

.checkout-wordmark {
    display: block;
    width: 100%
    max-width: 350px;
    height: auto;
    object-fit: contain;
}

/* Checkout wordmark */
.checkout-wordmark {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 0 25px 0;
    object-fit: contain;
}

/* Custom payment lettering */
.payment-wordmark {
    display: block;
    width: 150px;
    max-width: 100%
    height: auto;
}

/* Bitcoin payment instructions */
payment-details .bitcoin-help {
    text-align: left;
    margin: 55px 0 0;
    width: 100%
}

/* Centre checkout and payment headings */
.checkout-heading,
.checkout-heading img,
.payment-details .eyebrow,
.payment-details .payment-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.checkout-heading img {
    display: block;
}

/* Center PAYMENT heading */
.payment-details .eyebrow {
    display: flex;
    justify-content: center;
    align items: center;
    width: 100%;
    text-align: center;
}

/* Bitcoin payment help image */
.payment-details .bitcoin-help a {
    display: inline-block;
    text-decoration: none;
    border: none;
}

img.btc-help-image {
    display: block;
    width: 120px;
    max-width: 120px;
    height: 120px;
    object-fit: contain;
    border: none;
}

/* Bill page */
body.bill-page {
    font-family: Arial, Helvetica, sans-serif;
    background-image:
        linear-gradient(rgba(246, 242, 235, 0.18), rgba(246, 242, 235, 0.18)),
        url("/static/images/bill-background.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.bill-page-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.bill-panel {
    width: min(560px, 100%);
    padding: 32px;
    background: rgba(255, 253, 247, 0.40);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.bill-kicker {
    margin: 0 0 10px;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5c5a55;
}

.bill-panel h1 {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    font-weight: 400;
    color: #1f1f1c;
}

.bill-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0 0 24px;
}

.bill-row {
    padding: 14px 0;
    border-top: 1px solid rgba(31, 31, 28, 0.12);
}

.bill-row:last-child {
    border-bottom: 1px solid rgba(31, 31, 28, 0.12);
}

.bill-label {
    margin: 0 0 5px;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b675e;
}

.bill-value {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    line-height: 1.35;
    color: #1f1f1c;
    word-break: break-word;
}

.bill-value.mono {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.bill-note {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #3c3a36;
}

.bill-note.expired {
    color: #6a3024;
}

@media (max-width: 720px) {
    body.bill-page {
        background-attachment: scroll;
    }

    .bill-panel {
        padding: 24px 20px;
    }

    .bill-panel h1 {
        font-size: 2.2rem;
    }
}

/* Bill logo and centred layout */

.bill-content {
    width: min(560px, 100%);
    text-align: center;
}

.bill-logo {
    display: block;
    width: 190px;
    max-width: 65%;
    height: auto;
    margin: -120px auto 119px;
    object-fit: contain;
}

.bill-content .bill-panel {
    width: 100%;
    text-align: center;
}

.bill-content .bill-panel h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
}

/* Bitcoin bill — guest information form */

.bill-page #guest-details:not([hidden]) {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    text-align: left;
}

.bill-page #guest-details > label:not(.terms-agreement) {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    color: #273b30;
}

.bill-page #guest-details > input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(39, 59, 48, .35);
    border-radius: 3px;
    background: rgba(255, 255, 255, .75);
    color: #273b30;
    font-size: 16px;
}

.bill-page .terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #273b30;
}

.bill-page .terms-agreement input {
    margin-top: 4px;
    flex-shrink: 0;
}

.bill-page .terms-agreement a {
    color: #234d3c;
    text-decoration: underline;
}

.bill-page #guest-details button {
    padding: 14px;
    border: 0;
    border-radius: 3px;
    background: #304c3d;
    color: white;
    font-size: 16px;
}

.bill-page #guest-details button:disabled {
    opacity: .55;
    cursor: not-allowed;
}


/* Booking details on the booking-specific checkout page. */
.booking-description {
    display: block;
    max-width: 72%;
    text-align: right;
    line-height: 1.5;
    overflow-wrap: anywhere;
}


/* Bitcoin payment details */
.bitcoin-payment-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bitcoin-qr {
    box-sizing: border-box;
    width: min(100%, 280px);
    margin: 0.5rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
}

.bitcoin-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.bitcoin-exact-amount {
    text-align: center;
    overflow-wrap: anywhere;
}

.copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid currentColor;
    border-radius: 8px;
}

.copy-row span {
    grid-column: 1 / -1;
    font-weight: 600;
}

.copy-row code {
    min-width: 0;
    overflow-wrap: anywhere;
}

.copy-button {
    padding: 0.6rem 0.8rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

#quote-expiry {
    text-align: center;
    font-weight: 600;
}

#quote-expired-message {
    padding: 1rem;
    border: 1px solid currentColor;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .copy-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .copy-button {
        grid-column: 1;
    }
}

/* Payment method changes and payment-monitor notices */
.bill-page .payment-method-switch {
    margin: 1.25rem auto 0;
    text-align: center;
}

.bill-page .payment-method-switch button {
    padding: 0.75rem 1rem;
    border: 1px solid #304c3d;
    border-radius: 3px;
    background: transparent;
    color: #304c3d;
    font-size: 14px;
    cursor: pointer;
}

.bill-page .payment-method-switch button:hover,
.bill-page .payment-method-switch button:focus-visible {
    background: #304c3d;
    color: white;
}

.bill-page .payment-progress {
    padding: 0.8rem 1rem;
    border-left: 3px solid #b79a61;
    background: rgba(255, 255, 255, .7);
    text-align: left;
    overflow-wrap: anywhere;
}
