@media screen and (min-width: 75em) {
    .grid-container {
        max-width: 90rem;
    }
}

.thumbnail-container {
    width: 100%; /* This ensures each thumbnail container takes full width of its column */
    padding-top: 20%; /* Adjusted to 100% to ensure the height equals the width, making it square */
    position: relative;
    overflow: hidden; /* This ensures that any part of the image that exceeds the container is hidden */
}
label {
    font-weight: 700;
}
.accordion-checkbox {
    margin-right: 10px; /* Space between checkbox and title */
}

.accordion-title {
    display: flex;
    align-items: center; /* Align checkbox and title vertically */
}

footer a {
    text-decoration: none;
}

/* ASP.NET Core Validation Styles */
.field-validation-error {
    color: #cc4b37;
    font-size: 0.875rem;
    font-weight: bold;
    margin-top: 0.25rem;
    display: block;
}

.validation-summary-errors {
    margin-bottom: 1rem;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    margin-left: 1.25rem;
}

.input-validation-error {
    border-color: #cc4b37;
    background-color: rgba(204, 75, 55, 0.1);
}

.button-group {
    margin-bottom: 1rem;
}

.button-group .button {
    margin-bottom: 0;
    transition: all 0.2s ease-in-out;
}

.callout {
    border-radius: 0.5rem;
}

.button-group .button.active {
    background-color: #1779ba;
    box-shadow: 0 0 0 1px #1779ba;
    color: white;
    font-weight: bold;
}

.button-group .button:not(.active) {
    background-color: #e6e6e6;
    color: #0a0a0a;
}

.button-group .button {
    background-color: #e6e6e6;
    color: #0a0a0a;
}

.button-group .button.success {
    background-color: #1779ba;
    color: #ffffff;
}

.button-group .button:hover {
    background-color: #d0d0d0;
}

.button-group .button.success:hover {
    background-color: #1779ba;
}

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

.direct-bookings-filter {
    align-items: flex-end;
}

.direct-bookings-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.direct-bookings-filter-actions .button {
    margin-bottom: 0;
}

.booking-form .input-group {
    margin-bottom: 0;
}

.booking-form .input-group-field {
    width: 80px;
}

@media screen and (min-width: 64em) {
    .direct-bookings-filter {
        flex-wrap: nowrap;
    }

    .direct-bookings-filter-actions {
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .direct-bookings-filter-actions .button {
        flex-shrink: 0;
    }
}

.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner-spin 1s linear infinite;
}
.hidden {
    display: none;
}
@keyframes spinner-spin {
    to { transform: rotate(360deg); }
}

/* Revolut card field styling */
#card-field {
    background-color: white;
    border: 1px solid #cacaca;
    padding: 8px;
    box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
    margin-bottom: 1rem;
}
.feedback-button {
    background-color: transparent;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

.feedback-button i {
    transition: color 0.3s ease;
}

.feedback-button.yes i {
    color: #008000;
}

.feedback-button.yes:hover i,
.feedback-button.yes:focus i {
    color: #32CD32;
}

.feedback-button.no i {
    color: #990000;
}

.feedback-button.no:hover i,
.feedback-button.no:focus i {
    color: #FF0000;
}

.feedback-status {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.feedback-status[aria-hidden="true"] {
    display: none;
}

.feedback-status--info {
    color: #1a2733;
}

.feedback-status--success {
    color: #2c7a3f;
}

.feedback-status--error {
    color: #b23030;
}

.text-link-button {
    background: none;
    border: none;
    color: #3c9a5f; /* Choose a color that matches your link style */
    padding: 0;
    margin: 0;
    font-size: inherit;
    text-align: left;
}

    .text-link-button:hover, .text-link-button:focus {
        text-decoration: underline;
        outline: none;
    }

.form-inline input,
.form-inline button {
    display: inline-block; /* Elements display in-line */
    margin-right: 10px; /* Spacing between elements */
}

.form-inline input {
    vertical-align: middle; /* Aligns input fields vertically */
}

.form-inline button {
    vertical-align: middle; /* Aligns button vertically */
}

.text-small a, .text-small form {
    display: inline-block; /* Display elements inline */
    margin-right: 10px; /* Optional: Add space between elements */
}
.thumbnail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area, may crop it */
}
.challengetile {
    position: relative; /* Added to control positioning of child elements */
    background-color: #f9f9f9; /* Very light grey background */
    border: 1px solid #ccc; /* Darker border */
    padding: 28px 20px 20px 20px;
    border-radius: 0.4em;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
    margin-bottom: 15px;
    user-select: none; /* Disable text selection */
    cursor: default; /* Maintain the default cursor over the tile */
}

    .challengetile:hover {
        background-color: #fff; /* Background lightens to white on hover */
    }
.registration-id {
    position: absolute; /* Position relative to the tile */
    top: 0px; /* Adjusted to fit near the top border */
    left: 0px; /* Adjusted to fit near the left border */
    font-size: 0.8em; /* Smaller font size */
    color: #666; /* Grey text color */
    background-color: #ccc; /* Ensure no background interferes */
    padding: 2px 4px;
    border-top-left-radius: .4em;
    border-bottom-right-radius: .4em;
    font-weight: 600;
}

    .challengetile h5 {
        margin-top: 0;
        color: #333;
        font-size: 1.25em; /* Large text for event name */
        font-weight: 600;
    }

    .challengetile p {
        font-size: 0.9em; /* Smaller text for details */
        color: #666;
    }

.button.tiny {
    padding: 5px 10px;
    font-size: 0.8em; /* Smaller button font size */
    margin-bottom: 0;
}
.menu a {
    margin: 3px;
}
.breadcrumbs {
    margin-bottom: 0;
}

    .breadcrumbs ol {
        margin-left: 0;
    }

.label {
    border-radius: 0.3em;
}

.button {
    border-radius: 0.3em;
}

hr {
    max-width: 90rem;
}

    .menu a:hover,
    .menu a.active {
        background-color: #3c9a5f;
        border-radius: 0.3em;
        color: #fff;
    }

ul.menu.vertical li a:hover,
ul.menu.vertical li a.active {
    background-color: #3c9a5f;
    color: #fff;
    border-radius: 0.3em;
}

object {
    pointer-events: none;
}

[data-sticky] {
    width: 100%;
}

span {
    touch-action: manipulation;
}

.slick-prev:before, .slick-next:before {
    color: #006600 !important;
    z-index: 99;
}

.slick-prev, .slick-next {
    z-index: 99;
}
/*.is-active {
    background: #1779ba;
    color: white;
}*/
.tabs-title > a {
    font-size: 1em;
}

.grecaptcha-badge {
    opacity: 0;
}

#Body_wzContact_tbReason, #cphBody_wzContact_tbReason {
    display: none;
}

.breadcrumbs ol li a, .breadcrumbs ul li a {
    font-size: 1em;
    text-transform: none;
    color: #006600;
}

.breadcrumbs ol li, .breadcrumbs ul li {
    list-style-type: none;
}

.sticky-container {
    z-index: 5;
}

.top-bar, .top-bar ul {
    background-color: #000;
}

.no-js .top-bar {
    display: none;
}

.in-canvas-for-medium.position-left {
    width: auto;
}

.async-hide {
    opacity: 0 !important;
}

iframe.policies {
    width: 100%;
    border: 1px solid #000;
}

.paymentRequestButton {
    padding-top: 0;
}
/* Small only */
@media screen and (max-width: 39.9375em) {

    .large-12.hover td *:not(.label):not(.button) {
        font-size: 0.9rem;
    }


    #sidemenu div nav {
        margin: 0 10px;
    }

    .title-bar-title {
        position: relative;
    }

        .title-bar-title img {
            display: block;
            margin-left: auto;
            margin-right: auto;
        }
}
/* Medium and up */
@media screen and (min-width: 40em) {

    .slick-slider .slick-track, .slick-slider .slick-list, .carousel {
        height: 652px;
    }

    .slick-slide {
        height: auto;
    }

    .no-js .top-bar {
        display: block;
    }

    .no-js .title-bar {
        display: none;
    }
}

table .button, .title-bar a.button {
    margin-bottom: 0;
}

ul.menu.vertical {
    text-transform: uppercase;
    font-weight: bold;
}

    ul.menu.vertical li a {
        padding: 0.3rem;
    }

    ul.menu.vertical.nested {
        text-transform: none;
        font-weight: normal;
        padding: 5px 0 10px 0;
        margin-left: 8px;
    }

        ul.menu.vertical.nested li a {
            padding: 0.3rem;
        }

.fullscreen {
    width: 100%;
    height: 100%;
}

.admin td a {
    color: #000;
}

.admin {
    font-size: 0.7em;
}

#responsive-menu .input-group {
    margin-bottom: 0;
}

.top-bar, .title-bar {
    width: 100%;
    z-index: 10;
}

#sidemenu .menu > li > a {
    padding: .5rem;
    text-decoration: underline;
}

.button.success, .label.success {
    background-color: #3c9a5f;
    background: #3c9a5f;
    color: #FFF;
}

    .button.success:hover {
        color: #FFF;
    }

a.button {
    text-decoration: none;
}

.wizard-nav table {
    text-align: center;
    width: 20%;
}

    .wizard-nav table td {
        text-align: center;
        width: 100%;
    }

.fb-like {
    margin: 15px 0;
}

.validate {
    display: inline;
}

#mainmenu li a {
    padding: 0 10px 10px 0;
}

ol.breadcrumbs, ol.breadcrumbs li span, ol.breadcrumbs li a, ol.breadcrumbs li span {
    font-size: 1em;
    text-transform: none;
    color: #006600;
    list-style-type: none;
}

#Body_wzContact tbody td, #Body_wzContact table tbody, #cphBody_wzContact tbody td, #cphBody_wzContact table tbody, #cphBody_wzPayment tbody td, #cphBody_wzPayment table tbody {
    background-color: #FFFFFF;
    border: none;
    text-align: left;
}

#Body_cphBody_wzBooking tbody td, #Body_cphBody_wzBooking table tbody, #cphBody_wzReg tbody td, #cphBody_wzReg table tbody, #cphBody_wzPayment tbody td, #cphBody_wzPayment table tbody {
    background-color: #FFFFFF;
    border: none;
    text-align: left;
}

.mainmenu {
    font-size: 0.9em;
}

p small {
    font-size: smaller;
}

.small, a.small, p a.small {
    font-size: 12px;
}

iframe {
    border-style: none;
}

.map img {
    max-width: none;
    height: auto;
}

h1 {
    font-size: 4em;
    text-align: center;
    font-weight: 700;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    font-weight: 600;
}

h3 {
    font-size: 2em;
    font-weight: 600;
}

h4 {
    font-size: 1.5em;
}

h5 {
    font-size: 19px;
}

h6 {
    font-size: 19px;
}

body p, ul li, ol li {
    font-family: var(--font-sans);
    color: #1c1c1c;
    font-size: 18px;
}

div {
    font-family: var(--font-sans);
}

h1, h3, h2, h4, h5, h6 {
    font-family: var(--font-sans);
    color: #1c1c1c;
}

header {
    margin-top: 20px;
}

.nomargin {
    padding: 0;
    margin: 0;
}

.divider {
    margin: 0 0 10px 0;
}

footer div p, footer li {
    font-size: 12px;
    margin-bottom: 0px;
    list-style-type: none;
}

footer ul {
    margin: 0;
}

img {
    -moz-border-radius: 3px;
    border-radius: 3px;
}

body a, .side-nav li a {
    color: #3c9a5f;
    text-decoration: underline;
}

    body a:hover, .side-nav li a:hover {
        color: #43ac6a;
    }

.overlay h4, .overlay h3 {
    margin: 0px;
    font-size: 1em;
}

fieldset legend {
    font-weight: bold;
}

fieldset {
    border-top: 1px solid #000;
}

.menu.vertical > li {
    font-family: var(--font-sans) !important;
    font-size: 0.9em;
    color: #006600;
}

    .menu.vertical > li.heading {
        text-transform: uppercase;
        font-weight: bold;
        color: #006600;
    }

    .menu.vertical > li a:not(.button) {
        color: #006600;
        text-decoration: underline;
    }

#mainmenu li {
    font-size: 16px;
}

.listing h2, .listing h3 {
    font-size: 1.2em;
}

#cookies {
    display: none;
    position: absolute;
    padding: 10px;
    background-color: #FFFFFF;
    border: 1px solid #000;
    font-size: x-small;
    color: #000000;
    bottom: 20px;
    left: 20px;
}

a[rel="external"]::after, .external-link::after, a[rel="external nofollow"]::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 12px;
    margin-right: 0.2em;
    margin-left: -0.2em;
    background: url(/images/external-link.png) no-repeat;
}

.radiobutton label {
    line-height: 32px;
    margin: 0 0 12px 0;
    text-align: right;
}

.os-api-branding {
    position: relative !important;
    bottom: 39px !important;
}


/* -----------------------------------------
   Calendar
----------------------------------------- */
.ajax__calendar_container {
    border: solid 1px #B8B8B8;
    color: #333333;
    background-color: #FFFFFF;
}

.ajax__calendar_day {
    font-size: 14px;
    padding: 6px;
}

.ajax__calendar_hover {
    background-color: #6699FF;
}

.ajax__calendar_invalid {
    text-decoration: line-through;
}

    .ajax__calendar_invalid.ajax__calendar_hover {
        background-color: #FFF;
    }

    .ajax__calendar_invalid:hover {
        color: #666666;
    }

.ajax__calendar_header .ajax__calendar_hover {
    background-color: #FFF;
}

.ajax__calendar, div.ajax__calendar_container {
    width: 210px;
    height: 190px;
}

div.ajax__calendar_body {
    height: 145px;
    width: 210px;
    margin: 0;
}

.ajax__calendar_footer {
    font-size: 14px;
    display: none;
}

.ajax__calendar_days table tr td {
    padding: 3px;
}

.ajax__calendar_dayname {
    font-size: 14px;
    font-weight: bold;
}


/* -----------------------------------------
   Calendar icon
----------------------------------------- */

time.icon {
    font-size: 1em; /* change icon size */
    display: block;
    position: relative;
    width: 7em;
    height: 7.9em;
    background-color: #fff;
    margin: 2em auto;
    border-radius: 0.6em;
    box-shadow: 0 1px 0 #bdbdbd, 0 2px 0 #fff, 0 3px 0 #bdbdbd, 0 4px 0 #fff, 0 5px 0 #bdbdbd, 0 0 0 1px #bdbdbd;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: rotate(0deg) skewY(0deg);
    -webkit-transform-origin: 50% 10%;
    transform-origin: 50% 10%;
}

time.icon * {
    display: block;
    width: 100%;
    font-size: 1em;
    font-weight: bold;
    font-style: normal;
    text-align: center;
}

time.icon strong {
    position: absolute;
    top: 0;
    padding: 0.4em 0;
    color: #fff;
    background-color: #fd9f1b;
    border-bottom: 1px dashed #f37302;
    box-shadow: 0 2px 0 #fd9f1b;
}

time.icon em {
    position: absolute;
    bottom: 0.3em;
    color: #fd9f1b;
}

time.icon small {
    position: absolute;
    top: 3.3em;
    font-size: 0.8em;
    color: #2f2f2f;
}

time.icon span {
    width: 100%;
    font-size: 2.8em;
    letter-spacing: -0.05em;
    padding-top: 1em;
    color: #2f2f2f;
}




.pricing-table {
    background-color: #fefefe;
    border: solid 1px #cacaca;
    width: 100%;
    text-align: center;
    list-style-type: none;
    margin-left: 0;
}

    .pricing-table li {
        border-bottom: dotted 1px #cacaca;
        padding: 0.875rem 1.125rem;
    }

        .pricing-table li:last-child {
            border-bottom: 0;
        }

    .pricing-table .title {
        background-color: #0a0a0a;
        color: #fefefe;
        border-bottom: 0;
    }

    .pricing-table .price {
        background-color: #e6e6e6;
        font-size: 2rem;
        border-bottom: 0;
    }

    .pricing-table .description {
        color: #8a8a8a;
        font-size: 80%;
    }

    .pricing-table :last-child {
        margin-bottom: 0;
    }

progress[value] {
    /* Reset the default appearance */
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    width: 140px;
}

    progress[value]::-webkit-progress-bar {
        background-color: #ccc;
    }

    progress[value]::-webkit-progress-value {
        background-image: -webkit-linear-gradient(left, #c60f13, #5da423);
        background-size: 140px 100%;
    }


/* Incremental buttons */
.input-number-group {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

    .input-number-group input[type=number]::-webkit-inner-spin-button,
    .input-number-group input[type=number]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        appearance: none;
    }

    .input-number-group .input-group-button {
        line-height: calc(80px/2 - 5px);
    }

    .input-number-group .input-number {
        width: 80px;
        padding: 0 12px;
        vertical-align: top;
        text-align: center;
        outline: none;
        display: block;
        margin: 0;
    }

    .input-number-group .input-number,
    .input-number-group .input-number-decrement,
    .input-number-group .input-number-increment {
        border: 1px solid #cacaca;
        height: 40px;
        border-radius: 0;
    }

    .input-number-group .input-number-decrement,
    .input-number-group .input-number-increment {
        display: inline-block;
        width: 40px;
        background: #e6e6e6;
        color: #0a0a0a;
        text-align: center;
        cursor: pointer;
        font-size: 2rem;
        font-weight: 400;
    }

    .input-number-group .input-number-decrement {
        margin-right: 0.3rem;
    }

    .input-number-group .input-number-increment {
        margin-left: 0.3rem;
    }



#jQueryProgressFormBar > div {
    display: block;
    background: green;
    width: 0;
}

    #jQueryProgressFormBar > div.warn {
        background: yellow;
    }

    #jQueryProgressFormBar > div.error {
        background: red;
    }

/* Payment option selector styles */
.payment-option-selector .button-group {
    margin-bottom: 0.5rem;
}

.payment-option-selector .button {
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.payment-option-selector .button.active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Apple Pay / Payment Request Button container */
#payment-request-button {
    min-height: 40px; /* Maintain height to prevent flicker */
    position: relative;
    transition: opacity 0.2s ease;
}

/* Prevent layout shift when button is loading */
#payment-request-button:empty {
    background-color: #f6f6f6;
    border-radius: 4px;
    display: block;
}

#payment-request-button:empty::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #999;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Stripe Payment Request Button specific styling */
#payment-request-button .StripeElement {
    transition: opacity 0.2s ease;
}

/* Hide the button gracefully during updates */
#payment-request-button.updating {
    opacity: 0.5;
    pointer-events: none;
}

/* Payment form separator */
.separator-or {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.separator-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e6e6e6;
}

.separator-or span {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background-color: #fefefe;
    color: #8a8a8a;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Dark theme payment form styles */


/* TOGGLE STYLING */
.togglebox {
    margin: 0 0 0;
    box-sizing: border-box;
    font-size: 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: stretch;
}

    .togglebox input {
        width: 0;
        height: 0;
        position: absolute;
        left: -9999px;
    }

        .togglebox input + label {
            margin: 0;
            padding: 0.75rem 2rem;
            box-sizing: border-box;
            position: relative;
            display: inline-block;
            border: solid 1px #DDD;
            background-color: #FFF;
            font-size: 1rem;
            line-height: 140%;
            font-weight: 600;
            text-align: center;
            box-shadow: 0 0 0 rgba(255, 255, 255, 0);
            transition: border-color 0.15s ease-out, color 0.25s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
        }

            .togglebox input + label:first-of-type {
                border-radius: 6px 0 0 6px;
                border-right: none;
            }

            .togglebox input + label:last-of-type {
                border-radius: 0 6px 6px 0;
                border-left: none;
            }

        .togglebox input:hover + label {
            border-color: #213140;
        }

        .togglebox input:checked + label {
            background-color: #4B9DEA;
            color: #FFF;
            box-shadow: 0 0 10px rgba(102, 179, 251, 0.5);
            border-color: #4B9DEA;
            z-index: 1;
        }

        .togglebox input:focus + label {
            outline: dotted 1px #CCC;
            outline-offset: 0.45rem;
        }

/**
 * pretty-checkbox.css
 *
 * A pure CSS library to beautify checkbox and radio buttons
 *
 * Source: https://github.com/lokesh-coder/pretty-checkbox
 * Demo: https://lokesh-coder.github.io/pretty-checkbox
 *
 * Copyright (c) 2017 Lokesh rajendran
 */

.pretty * {
    box-sizing: border-box
}

.pretty input:not([type=checkbox]):not([type=radio]) {
    display: none
}

.pretty {
    position: relative;
    display: inline-block;
    margin-right: 1em;
    /*white-space: nowrap;*/
    line-height: 1
}

    .pretty input {
        position: absolute;
        left: 0;
        top: 0;
        min-width: 1em;
        width: 100%;
        height: 100%;
        z-index: 2;
        opacity: 0;
        margin: 0;
        padding: 0;
        cursor: pointer
    }

    .pretty .state label {
        position: initial;
        display: inline-block;
        font-weight: 400;
        margin: 0;
        text-indent: 1.5em;
        min-width: calc(1em + 2px)
    }

        .pretty .state label:after, .pretty .state label:before {
            content: '';
            width: calc(1em + 2px);
            height: calc(1em + 2px);
            display: block;
            box-sizing: border-box;
            border-radius: 0;
            border: 1px solid transparent;
            z-index: 0;
            position: absolute;
            left: 0;
            top: calc((0% - (100% - 1em)) - 8%);
            background-color: transparent
        }

        .pretty .state label:before {
            border-color: #bdc3c7
        }

    .pretty .state.p-is-hover, .pretty .state.p-is-indeterminate {
        display: none
    }

@-webkit-keyframes zoom {
    0% {
        opacity: 0;
        -webkit-transform: scale(0);
        transform: scale(0)
    }
}

@keyframes zoom {
    0% {
        opacity: 0;
        -webkit-transform: scale(0);
        transform: scale(0)
    }
}

@-webkit-keyframes tada {
    0% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        opacity: 0;
        -webkit-transform: scale(7);
        transform: scale(7)
    }

    38% {
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    55% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        -webkit-transform: scale(1.5);
        transform: scale(1.5)
    }

    72% {
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    81% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        -webkit-transform: scale(1.24);
        transform: scale(1.24)
    }

    89% {
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    95% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        -webkit-transform: scale(1.04);
        transform: scale(1.04)
    }

    100% {
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}

@keyframes tada {
    0% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        opacity: 0;
        -webkit-transform: scale(7);
        transform: scale(7)
    }

    38% {
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    55% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        -webkit-transform: scale(1.5);
        transform: scale(1.5)
    }

    72% {
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    81% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        -webkit-transform: scale(1.24);
        transform: scale(1.24)
    }

    89% {
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    95% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        -webkit-transform: scale(1.04);
        transform: scale(1.04)
    }

    100% {
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}

@-webkit-keyframes jelly {
    0% {
        -webkit-transform: scale3d(1,1,1);
        transform: scale3d(1,1,1)
    }

    30% {
        -webkit-transform: scale3d(.75,1.25,1);
        transform: scale3d(.75,1.25,1)
    }

    40% {
        -webkit-transform: scale3d(1.25,.75,1);
        transform: scale3d(1.25,.75,1)
    }

    50% {
        -webkit-transform: scale3d(.85,1.15,1);
        transform: scale3d(.85,1.15,1)
    }

    65% {
        -webkit-transform: scale3d(1.05,.95,1);
        transform: scale3d(1.05,.95,1)
    }

    75% {
        -webkit-transform: scale3d(.95,1.05,1);
        transform: scale3d(.95,1.05,1)
    }

    100% {
        -webkit-transform: scale3d(1,1,1);
        transform: scale3d(1,1,1)
    }
}

@keyframes jelly {
    0% {
        -webkit-transform: scale3d(1,1,1);
        transform: scale3d(1,1,1)
    }

    30% {
        -webkit-transform: scale3d(.75,1.25,1);
        transform: scale3d(.75,1.25,1)
    }

    40% {
        -webkit-transform: scale3d(1.25,.75,1);
        transform: scale3d(1.25,.75,1)
    }

    50% {
        -webkit-transform: scale3d(.85,1.15,1);
        transform: scale3d(.85,1.15,1)
    }

    65% {
        -webkit-transform: scale3d(1.05,.95,1);
        transform: scale3d(1.05,.95,1)
    }

    75% {
        -webkit-transform: scale3d(.95,1.05,1);
        transform: scale3d(.95,1.05,1)
    }

    100% {
        -webkit-transform: scale3d(1,1,1);
        transform: scale3d(1,1,1)
    }
}

@-webkit-keyframes rotate {
    0% {
        opacity: 0;
        -webkit-transform: translateZ(-200px) rotate(-45deg);
        transform: translateZ(-200px) rotate(-45deg)
    }

    100% {
        opacity: 1;
        -webkit-transform: translateZ(0) rotate(0);
        transform: translateZ(0) rotate(0)
    }
}

@keyframes rotate {
    0% {
        opacity: 0;
        -webkit-transform: translateZ(-200px) rotate(-45deg);
        transform: translateZ(-200px) rotate(-45deg)
    }

    100% {
        opacity: 1;
        -webkit-transform: translateZ(0) rotate(0);
        transform: translateZ(0) rotate(0)
    }
}

@-webkit-keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 #bdc3c7
    }

    100% {
        box-shadow: 0 0 0 1.5em rgba(189,195,199,0)
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 #bdc3c7
    }

    100% {
        box-shadow: 0 0 0 1.5em rgba(189,195,199,0)
    }
}

.pretty.p-default.p-fill .state label:after {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1)
}

.pretty.p-default .state label:after {
    -webkit-transform: scale(.6);
    -ms-transform: scale(.6);
    transform: scale(.6)
}

.pretty.p-default input:checked ~ .state label:after {
    background-color: #bdc3c7 !important
}

.pretty.p-default.p-thick .state label:after, .pretty.p-default.p-thick .state label:before {
    border-width: calc(1em / 7)
}

.pretty.p-default.p-thick .state label:after {
    -webkit-transform: scale(.4) !important;
    -ms-transform: scale(.4) !important;
    transform: scale(.4) !important
}

.pretty.p-icon .state .icon {
    position: absolute;
    font-size: 1em;
    width: calc(1em + 2px);
    height: calc(1em + 2px);
    left: 0;
    z-index: 1;
    text-align: center;
    line-height: normal;
    top: calc((0% - (100% - 1em)) - 8%);
    border: 1px solid transparent;
    opacity: 0
}

    .pretty.p-icon .state .icon:before {
        margin: 0;
        width: 100%;
        height: 100%;
        text-align: center;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        line-height: 1
    }

.pretty.p-icon input:checked ~ .state .icon {
    opacity: 1
}

.pretty.p-icon input:checked ~ .state label:before {
    border-color: #5a656b
}

.pretty.p-svg .state .svg {
    position: absolute;
    font-size: 1em;
    width: calc(1em + 2px);
    height: calc(1em + 2px);
    left: 0;
    z-index: 1;
    text-align: center;
    line-height: normal;
    top: calc((0% - (100% - 1em)) - 8%);
    border: 1px solid transparent;
    opacity: 0
}

.pretty.p-svg .state svg {
    margin: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    line-height: 1
}

.pretty.p-svg input:checked ~ .state .svg {
    opacity: 1
}

.pretty.p-image .state img {
    opacity: 0;
    position: absolute;
    width: calc(1em + 2px);
    height: calc(1em + 2px);
    top: 0;
    top: calc((0% - (100% - 1em)) - 8%);
    left: 0;
    z-index: 0;
    text-align: center;
    line-height: normal;
    -webkit-transform: scale(.8);
    -ms-transform: scale(.8);
    transform: scale(.8)
}

.pretty.p-image input:checked ~ .state img {
    opacity: 1
}

.pretty.p-switch input {
    min-width: 2em
}

.pretty.p-switch .state {
    position: relative
}

    .pretty.p-switch .state:before {
        content: '';
        border: 1px solid #bdc3c7;
        border-radius: 60px;
        width: 2em;
        box-sizing: unset;
        height: calc(1em + 2px);
        position: absolute;
        top: 0;
        top: calc((0% - (100% - 1em)) - 16%);
        z-index: 0;
        transition: all .5s ease
    }

    .pretty.p-switch .state label {
        text-indent: 2.5em
    }

        .pretty.p-switch .state label:after, .pretty.p-switch .state label:before {
            transition: all .5s ease;
            border-radius: 100%;
            left: 0;
            border-color: transparent;
            -webkit-transform: scale(.8);
            -ms-transform: scale(.8);
            transform: scale(.8)
        }

        .pretty.p-switch .state label:after {
            background-color: #bdc3c7 !important
        }

.pretty.p-switch input:checked ~ .state:before {
    border-color: #5a656b
}

.pretty.p-switch input:checked ~ .state label:before {
    opacity: 0
}

.pretty.p-switch input:checked ~ .state label:after {
    background-color: #5a656b !important;
    left: 1em
}

.pretty.p-switch.p-fill input:checked ~ .state:before {
    border-color: #5a656b;
    background-color: #5a656b !important
}

.pretty.p-switch.p-fill input:checked ~ .state label:before {
    opacity: 0
}

.pretty.p-switch.p-fill input:checked ~ .state label:after {
    background-color: #fff !important;
    left: 1em
}

.pretty.p-switch.p-slim .state:before {
    height: .1em;
    background: #bdc3c7 !important;
    top: calc(50% - .1em)
}

.pretty.p-switch.p-slim input:checked ~ .state:before {
    border-color: #5a656b;
    background-color: #5a656b !important
}

.pretty.p-has-hover input:hover ~ .state:not(.p-is-hover) {
    display: none
}

.pretty.p-has-hover input:hover ~ .state.p-is-hover {
    display: block
}

    .pretty.p-has-hover input:hover ~ .state.p-is-hover .icon {
        display: block
    }

.pretty.p-has-focus input:focus ~ .state label:before {
    box-shadow: 0 0 3px 0 #bdc3c7
}

.pretty.p-has-indeterminate input[type=checkbox]:indeterminate ~ .state:not(.p-is-indeterminate) {
    display: none
}

.pretty.p-has-indeterminate input[type=checkbox]:indeterminate ~ .state.p-is-indeterminate {
    display: block
}

    .pretty.p-has-indeterminate input[type=checkbox]:indeterminate ~ .state.p-is-indeterminate .icon {
        display: block;
        opacity: 1
    }

.pretty.p-toggle .state.p-on {
    opacity: 0;
    display: none
}

.pretty.p-toggle .state .icon, .pretty.p-toggle .state .svg, .pretty.p-toggle .state img, .pretty.p-toggle .state.p-off {
    opacity: 1;
    display: inherit
}

    .pretty.p-toggle .state.p-off .icon {
        color: #bdc3c7
    }

.pretty.p-toggle input:checked ~ .state.p-on {
    opacity: 1;
    display: inherit
}

.pretty.p-toggle input:checked ~ .state.p-off {
    opacity: 0;
    display: none
}

.pretty.p-plain input:checked ~ .state label:before, .pretty.p-plain.p-toggle .state label:before {
    content: none
}

.pretty.p-plain.p-plain .icon {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1)
}

.pretty.p-round .state label:after, .pretty.p-round .state label:before {
    border-radius: 100%
}

.pretty.p-round.p-icon .state .icon {
    border-radius: 100%;
    overflow: hidden
}

    .pretty.p-round.p-icon .state .icon:before {
        -webkit-transform: scale(.8);
        -ms-transform: scale(.8);
        transform: scale(.8)
    }

.pretty.p-curve .state label:after, .pretty.p-curve .state label:before {
    border-radius: 20%
}

.pretty.p-smooth .icon, .pretty.p-smooth .svg, .pretty.p-smooth label:after, .pretty.p-smooth label:before {
    transition: all .5s ease
}

.pretty.p-smooth input:checked + .state label:after {
    transition: all .3s ease
}

.pretty.p-smooth input:checked + .state .icon, .pretty.p-smooth input:checked + .state .svg, .pretty.p-smooth input:checked + .state img {
    -webkit-animation: zoom .2s ease;
    animation: zoom .2s ease
}

.pretty.p-smooth.p-default input:checked + .state label:after {
    -webkit-animation: zoom .2s ease;
    animation: zoom .2s ease
}

.pretty.p-smooth.p-plain input:checked + .state label:before {
    content: '';
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    transition: all .5s ease
}

.pretty.p-tada:not(.p-default) input:checked + .state .icon, .pretty.p-tada:not(.p-default) input:checked + .state .svg, .pretty.p-tada:not(.p-default) input:checked + .state img, .pretty.p-tada:not(.p-default) input:checked + .state label:after, .pretty.p-tada:not(.p-default) input:checked + .state label:before {
    -webkit-animation: tada .7s cubic-bezier(.25,.46,.45,.94) 1 alternate;
    animation: tada .7s cubic-bezier(.25,.46,.45,.94) 1 alternate;
    opacity: 1
}

.pretty.p-jelly:not(.p-default) input:checked + .state .icon, .pretty.p-jelly:not(.p-default) input:checked + .state .svg, .pretty.p-jelly:not(.p-default) input:checked + .state img, .pretty.p-jelly:not(.p-default) input:checked + .state label:after, .pretty.p-jelly:not(.p-default) input:checked + .state label:before {
    -webkit-animation: jelly .7s cubic-bezier(.25,.46,.45,.94);
    animation: jelly .7s cubic-bezier(.25,.46,.45,.94);
    opacity: 1
}

.pretty.p-jelly:not(.p-default) input:checked + .state label:before {
    border-color: transparent
}

.pretty.p-rotate:not(.p-default) input:checked ~ .state .icon, .pretty.p-rotate:not(.p-default) input:checked ~ .state .svg, .pretty.p-rotate:not(.p-default) input:checked ~ .state img, .pretty.p-rotate:not(.p-default) input:checked ~ .state label:after, .pretty.p-rotate:not(.p-default) input:checked ~ .state label:before {
    -webkit-animation: rotate .7s cubic-bezier(.25,.46,.45,.94);
    animation: rotate .7s cubic-bezier(.25,.46,.45,.94);
    opacity: 1
}

.pretty.p-rotate:not(.p-default) input:checked ~ .state label:before {
    border-color: transparent
}

.pretty.p-pulse:not(.p-switch) input:checked ~ .state label:before {
    -webkit-animation: pulse 1s;
    animation: pulse 1s
}

.pretty input[disabled] {
    cursor: not-allowed;
    display: none
}

    .pretty input[disabled] ~ * {
        opacity: .5
    }

.pretty.p-locked input {
    display: none;
    cursor: not-allowed
}

.pretty input:checked ~ .state.p-primary label:after, .pretty.p-toggle .state.p-primary label:after {
    background-color: #428bca !important
}

.pretty input:checked ~ .state.p-primary .icon, .pretty input:checked ~ .state.p-primary .svg, .pretty.p-toggle .state.p-primary .icon, .pretty.p-toggle .state.p-primary .svg {
    color: #fff;
    stroke: #fff
}

.pretty input:checked ~ .state.p-primary-o label:before, .pretty.p-toggle .state.p-primary-o label:before {
    border-color: #428bca
}

.pretty input:checked ~ .state.p-primary-o label:after, .pretty.p-toggle .state.p-primary-o label:after {
    background-color: transparent
}

.pretty input:checked ~ .state.p-primary-o .icon, .pretty input:checked ~ .state.p-primary-o .svg, .pretty input:checked ~ .state.p-primary-o svg, .pretty.p-toggle .state.p-primary-o .icon, .pretty.p-toggle .state.p-primary-o .svg, .pretty.p-toggle .state.p-primary-o svg {
    color: #428bca;
    stroke: #428bca
}

.pretty.p-default:not(.p-fill) input:checked ~ .state.p-primary-o label:after {
    background-color: #428bca !important
}

.pretty.p-switch input:checked ~ .state.p-primary:before {
    border-color: #428bca
}

.pretty.p-switch.p-fill input:checked ~ .state.p-primary:before {
    background-color: #428bca !important
}

.pretty.p-switch.p-slim input:checked ~ .state.p-primary:before {
    border-color: #245682;
    background-color: #245682 !important
}

.pretty input:checked ~ .state.p-info label:after, .pretty.p-toggle .state.p-info label:after {
    background-color: #5bc0de !important
}

.pretty input:checked ~ .state.p-info .icon, .pretty input:checked ~ .state.p-info .svg, .pretty.p-toggle .state.p-info .icon, .pretty.p-toggle .state.p-info .svg {
    color: #fff;
    stroke: #fff
}

.pretty input:checked ~ .state.p-info-o label:before, .pretty.p-toggle .state.p-info-o label:before {
    border-color: #5bc0de
}

.pretty input:checked ~ .state.p-info-o label:after, .pretty.p-toggle .state.p-info-o label:after {
    background-color: transparent
}

.pretty input:checked ~ .state.p-info-o .icon, .pretty input:checked ~ .state.p-info-o .svg, .pretty input:checked ~ .state.p-info-o svg, .pretty.p-toggle .state.p-info-o .icon, .pretty.p-toggle .state.p-info-o .svg, .pretty.p-toggle .state.p-info-o svg {
    color: #5bc0de;
    stroke: #5bc0de
}

.pretty.p-default:not(.p-fill) input:checked ~ .state.p-info-o label:after {
    background-color: #5bc0de !important
}

.pretty.p-switch input:checked ~ .state.p-info:before {
    border-color: #5bc0de
}

.pretty.p-switch.p-fill input:checked ~ .state.p-info:before {
    background-color: #5bc0de !important
}

.pretty.p-switch.p-slim input:checked ~ .state.p-info:before {
    border-color: #2390b0;
    background-color: #2390b0 !important
}

.pretty input:checked ~ .state.p-success label:after, .pretty.p-toggle .state.p-success label:after {
    background-color: #5cb85c !important
}

.pretty input:checked ~ .state.p-success .icon, .pretty input:checked ~ .state.p-success .svg, .pretty.p-toggle .state.p-success .icon, .pretty.p-toggle .state.p-success .svg {
    color: #fff;
    stroke: #fff
}

.pretty input:checked ~ .state.p-success-o label:before, .pretty.p-toggle .state.p-success-o label:before {
    border-color: #5cb85c
}

.pretty input:checked ~ .state.p-success-o label:after, .pretty.p-toggle .state.p-success-o label:after {
    background-color: transparent
}

.pretty input:checked ~ .state.p-success-o .icon, .pretty input:checked ~ .state.p-success-o .svg, .pretty input:checked ~ .state.p-success-o svg, .pretty.p-toggle .state.p-success-o .icon, .pretty.p-toggle .state.p-success-o .svg, .pretty.p-toggle .state.p-success-o svg {
    color: #5cb85c;
    stroke: #5cb85c
}

.pretty.p-default:not(.p-fill) input:checked ~ .state.p-success-o label:after {
    background-color: #5cb85c !important
}

.pretty.p-switch input:checked ~ .state.p-success:before {
    border-color: #5cb85c
}

.pretty.p-switch.p-fill input:checked ~ .state.p-success:before {
    background-color: #5cb85c !important
}

.pretty.p-switch.p-slim input:checked ~ .state.p-success:before {
    /* colour when checked */
    border-color: #3c9a5f;
    background-color: #3c9a5f !important
}

.pretty input:checked ~ .state.p-warning label:after, .pretty.p-toggle .state.p-warning label:after {
    background-color: #f0ad4e !important
}

.pretty input:checked ~ .state.p-warning .icon, .pretty input:checked ~ .state.p-warning .svg, .pretty.p-toggle .state.p-warning .icon, .pretty.p-toggle .state.p-warning .svg {
    color: #fff;
    stroke: #fff
}

.pretty input:checked ~ .state.p-warning-o label:before, .pretty.p-toggle .state.p-warning-o label:before {
    border-color: #f0ad4e
}

.pretty input:checked ~ .state.p-warning-o label:after, .pretty.p-toggle .state.p-warning-o label:after {
    background-color: transparent
}

.pretty input:checked ~ .state.p-warning-o .icon, .pretty input:checked ~ .state.p-warning-o .svg, .pretty input:checked ~ .state.p-warning-o svg, .pretty.p-toggle .state.p-warning-o .icon, .pretty.p-toggle .state.p-warning-o .svg, .pretty.p-toggle .state.p-warning-o svg {
    color: #f0ad4e;
    stroke: #f0ad4e
}

.pretty.p-default:not(.p-fill) input:checked ~ .state.p-warning-o label:after {
    background-color: #f0ad4e !important
}

.pretty.p-switch input:checked ~ .state.p-warning:before {
    border-color: #f0ad4e
}

.pretty.p-switch.p-fill input:checked ~ .state.p-warning:before {
    background-color: #f0ad4e !important
}

.pretty.p-switch.p-slim input:checked ~ .state.p-warning:before {
    border-color: #c77c11;
    background-color: #c77c11 !important
}

.pretty input:checked ~ .state.p-danger label:after, .pretty.p-toggle .state.p-danger label:after {
    background-color: #d9534f !important
}

.pretty input:checked ~ .state.p-danger .icon, .pretty input:checked ~ .state.p-danger .svg, .pretty.p-toggle .state.p-danger .icon, .pretty.p-toggle .state.p-danger .svg {
    color: #fff;
    stroke: #fff
}

.pretty input:checked ~ .state.p-danger-o label:before, .pretty.p-toggle .state.p-danger-o label:before {
    border-color: #d9534f;
}

.pretty input:checked ~ .state.p-danger-o label:after, .pretty.p-toggle .state.p-danger-o label:after {
    background-color: transparent
}

.pretty input:checked ~ .state.p-danger-o .icon, .pretty input:checked ~ .state.p-danger-o .svg, .pretty input:checked ~ .state.p-danger-o svg, .pretty.p-toggle .state.p-danger-o .icon, .pretty.p-toggle .state.p-danger-o .svg, .pretty.p-toggle .state.p-danger-o svg {
    color: #d9534f;
    stroke: #d9534f
}

.pretty.p-default:not(.p-fill) input:checked ~ .state.p-danger-o label:after {
    background-color: #d9534f !important
}

.pretty.p-switch input:checked ~ .state.p-danger:before {
    border-color: #d9534f
}

.pretty.p-switch.p-fill input:checked ~ .state.p-danger:before {
    background-color: #d9534f !important
}

.pretty.p-switch.p-slim input:checked ~ .state.p-danger:before {
    border-color: #a02622;
    background-color: #a02622 !important
}

.pretty.p-bigger .icon, .pretty.p-bigger .img, .pretty.p-bigger .svg, .pretty.p-bigger label:after, .pretty.p-bigger label:before {
    font-size: 1.2em !important;
    top: calc((0% - (100% - 1em)) - 35%) !important
}

.pretty.p-bigger label {
    text-indent: 1.7em
}

@media print {
    .pretty .state .icon, .pretty .state label:after, .pretty .state label:before, .pretty .state:before {
        color-adjust: exact;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact
    }
}

.pretty.p-bigger .icon, .pretty.p-bigger .img, .pretty.p-bigger .svg, .pretty.p-bigger label:after, .pretty.p-bigger label:before {
    top: 4px !important;
}

.pretty.p-svg .state .svg {
    top: 4px;
    left: -1px;
}

/* Help text styling */
.help-text {
    margin-top: -0.5rem;
    font-size: 0.8125rem;
    font-style: italic;
    color: #6c757d;
}

.help-text small {
    color: #6c757d;
}

/* Foundation form text variants */
.form-text,
.text-muted {
    color: #6c757d;
}



/* Payment Form Styles */
.payment-form {
    margin-top: 1rem;
}

.payment-form input,
.payment-form #card-field,
.payment-form #card-errors {
    margin-bottom: 1rem;
}

/* Ensure dark theme styles apply to payment inputs */


.payment-options {
    margin-bottom: 1rem;
}

.payment-submit {
    font-size: 1.2rem;
    padding: 1rem;
    height: auto;
    font-weight: 600;
    margin-top: 1.5rem;
}

.payment-message {
    margin-top: 1rem;
    display: none;
}

.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner-spin 1s linear infinite;
    margin-right: 0.5rem;
}

.hidden {
    display: none;
}

@keyframes spinner-spin {
    to { transform: rotate(360deg); }
}

/* Payment option selector styles */
.payment-option-selector .button-group {
    margin-bottom: 0.5rem;
}

.payment-option-selector .button {
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.payment-option-selector .button.active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Apple Pay / Payment Request Button container */
#payment-request-button {
    min-height: 40px; /* Maintain height to prevent flicker */
    position: relative;
    transition: opacity 0.2s ease;
}

/* Prevent layout shift when button is loading */
#payment-request-button:empty {
    background-color: #f6f6f6;
    border-radius: 4px;
    display: block;
}

#payment-request-button:empty::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #999;
    border-radius: 50%;
    animation: payment-button-loading 0.8s linear infinite;
}

@keyframes payment-button-loading {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Stripe Payment Request Button specific styling */
#payment-request-button .StripeElement {
    transition: opacity 0.2s ease;
}

/* Hide the button gracefully during updates */
#payment-request-button.updating {
    opacity: 0.5;
    pointer-events: none;
}

/* Payment form separator */
.separator-or {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.separator-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e6e6e6;
}

.separator-or span {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background-color: #fff;
    color: #8a8a8a;
    font-size: 0.875rem;
}

/* Stripe Elements styling to match Foundation inputs */
.stripe-element {
    display: block;
    width: 100%;
    height: 2.4375rem;
    padding: 0.5rem;
    border: 1px solid #cacaca;
    border-radius: 0;
    background-color: #fefefe;
    box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #0a0a0a;
    transition: border-color 0.25s ease-in-out, box-shadow 0.5s;
}

/* Autofill detection animation */
@keyframes onAutoFillStart {
    from {/**/}
    to {/**/}
}

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    --autofill-background: #fefefe;
    --autofill-text: #0a0a0a;
    --ink: #0f2a2a;
    --ink-soft: #1b3d3d;
    --sand: #f5efe6;
    --mist: #edf6f2;
    --surface: #fffaf4;
    --coral: #e76d5b;
    --sun: #f4b468;
    --teal: #0c4b4a;
    --mint: #c8e7dd;
    --border: rgba(15, 42, 42, 0.12);
    --shadow: 0 30px 80px rgba(15, 42, 42, 0.14);
    --radius: 28px;
}



input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:autofill,
input:autofill:hover,
input:autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:autofill,
textarea:autofill:hover,
textarea:autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:autofill,
select:autofill:hover,
select:autofill:focus {
    animation-name: onAutoFillStart;
    transition: background-color 50000s ease-in-out 0s;
    color: var(--autofill-text) !important;
    -webkit-text-fill-color: var(--autofill-text) !important;
    caret-color: var(--autofill-text);
    background-color: var(--autofill-background) !important;
    background-image: none !important;
    -webkit-box-shadow: 0 0 0 1000px var(--autofill-background) inset !important;
    box-shadow: 0 0 0 1000px var(--autofill-background) inset !important;
}

.stripe-element--focus {
    outline: 0;
    border: 1px solid #8a8a8a;
    background-color: #fefefe;
    box-shadow: 0 0 5px #cacaca;
}

.stripe-element--invalid {
    border-color: #cc4b37;
}

.stripe-element--complete {
    border-color: #3adb76;
}

/* Form styles for payment forms */
.field-group {
    margin-bottom: 1rem;
}

.field-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #0a0a0a;
}

.field-control {
    display: block;
    width: 100%;
    height: 2.4375rem;
    padding: 0.5rem;
    border: 1px solid #cacaca;
    border-radius: 0;
    background-color: #fefefe;
    box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #0a0a0a;
    transition: border-color 0.25s ease-in-out, box-shadow 0.5s;
}

.field-control:focus {
    outline: 0;
    border: 1px solid #8a8a8a;
    background-color: #fefefe;
    box-shadow: 0 0 5px #cacaca;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('../images/three-peaks-fundraising-group.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-content .lead {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white !important;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.button-group .button {
    background: #f0f0f0;
    color: #333;
    border: none;
    font-size: 1.5rem;
    padding: 0.75rem 1.5rem;
}

.button-group .button:hover {
    background-color: white;
}
.copy-icon {
    cursor: pointer;
}
/* Inline button spinner for submit actions */
.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tpc-spin .6s linear infinite;
  margin-left: .5rem;
  vertical-align: -0.125em;
}

@keyframes tpc-spin {
  to { transform: rotate(360deg); }
}

.sortable-header {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2rem;
    text-decoration-color: var(--ink-soft);
    font-weight: 700;
}

.sortable-header .sort-icon {
    width: 1.2rem;
    height: 1.2rem;
    color: var(--ink-soft);
    display: inline-flex;
}

.sortable-header .sort-icon svg {
    width: 100%;
    height: 100%;
}

.sortable-header:hover .sort-icon,
.sortable-header:focus .sort-icon {
    color: var(--ink);
}

.sortable-header.is-active .sort-icon {
    color: var(--teal);
}

.sortable-header:hover,
.sortable-header:focus {
    color: var(--ink);
    text-decoration-color: var(--ink);
}

/* Dark mode overrides specific to this site. */

@media (prefers-color-scheme: dark) {
    .separator-or::before {
        background-color: #444;
    }

    .separator-or span {
        background-color: #1f1f1f;
        color: #9e9e9e;
    }

    .payment-option-selector .button.active {
        box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
    }

    /* Dark theme for payment button loading state */
    #payment-request-button:empty {
        background-color: #2a2a2a;
    }
    
    #payment-request-button:empty::after {
        border-color: #444;
        border-top-color: #888;
    }

    /* Dark theme for Stripe Elements */
    .stripe-element {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }

    .stripe-element--focus {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #6a9fff;
        box-shadow: 0 0 0 2px rgba(106, 159, 255, 0.3);
    }

    .stripe-element--invalid {
        border-color: #dc3545;
    }
}

@media (prefers-color-scheme: dark) {
    /* General background */
    body, .grid-container, .accordion-title, .form-inline, .thumbnail-container, .challengetile, .slick-slider {
        background-color: #121212; /* Dark background for the main areas */
        color: #E0E0E0; /* Light text for readability */
    }
    .accordion-content {
        background-color: #1f1f1f;
        color: #e0e0e0;
        border-color: #333;
    }
    .challengetile:hover {
        background-color: #1A1A1A;
    }
    body, div, h1, h2, h3, h4, h5, h6, p, ul li, ol li, label {
        color: #E0E0E0 !important; 
    }
    .pricing-table li {
        color: #bdc3c7; /* Light text for readability */
    }
    /* Buttons and interactive elements */
    .button, .text-link-button, .input-number-group .input-number-decrement,
    .input-number-group .input-number-increment, .togglebox label, .pricing-table .title,
    .ajax__calendar_hover, .slick-prev:before, .slick-next:before {
        background-color: #333; /* Darker element background */
        color: #FFF; /* White text for contrast */
        border-color: #444; /* Slightly lighter border for visibility */
    }    
    .feedback-button {
             background-color: unset;
         }
    tbody, tfoot, thead {
        background-color: #2E2E2E;
    }
    tbody tr:nth-child(2n) {
        background-color: #3A3A3A;
    }
    table.hover tbody tr:hover {
        background-color: #4D4D4D;
    }
    table.hover:not(.unstriped) tr:nth-of-type(2n):hover {
        background-color: #4D4D4D;
    }
    table.hover thead tr:hover {
        background-color: #4D4D4D;
    }
    #Body_cphBody_wzBooking tbody td, #Body_cphBody_wzBooking table tbody, #cphBody_wzReg tbody td, #cphBody_wzReg table tbody, #cphBody_wzPayment tbody td, #cphBody_wzPayment table tbody {
        background-color: #2E2E2E;
    }
    .tabs-content {
        background: #2E2E2E;
    }
    .tabs {
        background: #2E2E2E;
    }
    .tabs-title > a:focus, .tabs-title > a[aria-selected="true"] {
        background: #3A3A3A;
        color: #bdc3c7;
    }
    .challengetile .registration-id {
        color: #065f46 !important;
    }
    /* Special states for buttons */
    .feedback-button[data-response="true"]:hover, .feedback-button[data-response="true"]:focus {
        background-color: #198754; /* Bootstrap green for success */
    }

    .feedback-button[data-response="false"]:hover, .feedback-button[data-response="false"]:focus {
        background-color: #dc3545; /* Bootstrap red for danger */
    }

    .button.success, .label.success, .menu a:hover, .menu a.active,
    ul.menu.vertical li a:hover, ul.menu.vertical li a.active {
        background-color: #065f46; /* Dark green for success and active states */
    }

    /* Text and links */
    .text-link-button:hover, .text-link-button:focus, body a, .side-nav li a {
        color: #4CAF50; /* Bright green for hover states on links */
        text-decoration: underline;
    }

    .sortable-header {
        color: #E0E0E0;
        text-decoration-color: #9E9E9E;
    }

    .sortable-header .sort-icon {
        color: #9E9E9E;
    }

    .sortable-header:hover,
    .sortable-header:focus {
        color: #FFFFFF;
        text-decoration-color: #FFFFFF;
    }

    .sortable-header.is-active {
        color: #4CAF50;
        text-decoration-color: #4CAF50;
    }

    .sortable-header.is-active .sort-icon {
        color: #4CAF50;
    }

    /* Form elements and special components */
    .form-inline input, .form-inline button, .input-number-group input[type=number] {
        background-color: #2C2C2C; /* Slightly lighter grey for input backgrounds */
        color: #FFF; /* White text inside inputs */
    }
    
    /* Standard input fields and form controls */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="tel"],
    textarea,
    select {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }
    .field-control {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    }
    
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="number"]:focus,
    input[type="date"]:focus,
    input[type="tel"]:focus,
    textarea:focus,
    select:focus {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #6a9fff;
        box-shadow: 0 0 0 2px rgba(106, 159, 255, 0.3);
    }
    .field-control:focus {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #6a9fff;
        box-shadow: 0 0 0 2px rgba(106, 159, 255, 0.3);
    }
    
    /* Placeholder text */
    input::placeholder,
    textarea::placeholder {
        color: #999;
    }

    /* Breadcrumbs and navigation */
    .breadcrumbs ol li a, .breadcrumbs ul li a, .menu.vertical > li, .menu.vertical > li a:not(.button) {
        color: #9E9E9E; /* Grey text for less focus attention */
    }

    .top-bar, .top-bar ul {
        background-color: #333; /* Dark grey background for top bar */
    }

    /* Calendar and specific controls */
    .ajax__calendar_container, .pricing-table, .ajax__calendar_day, .ajax__calendar_header .ajax__calendar_hover,
    .ajax__calendar_invalid:hover {
        background-color: #222; /* Very dark background for components like calendars */
        color: #CCC; /* Lighter text for readability */
    }

    /* Progress bars and sliders */
    progress[value]::-webkit-progress-bar {
        background-color: #555; /* Darker grey for progress bar background */
    }

    progress[value]::-webkit-progress-value {
        background-image: linear-gradient(to right, #0d6efd, #6610f2); /* Gradient for progress value */
    }

    #jQueryProgressFormBar > div, #jQueryProgressFormBar > div.warn, #jQueryProgressFormBar > div.error {
        background-color: #444; /* Uniform background for progress states */
    }

    /* Enhancements for visibility */
    .fieldset, .divider, hr {
        border-color: #333; /* Dark borders for separation */
    }

    /* Icons and decorative elements */
    .time.icon strong, .pricing-table .price {
        background-color: #666; /* Mid grey for standout elements like icons */
    }

    .pretty.p-switch input:checked ~ .state label:after {
        background-color: #4CAF50; /* Bright green for toggles */
    }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="tel"],
    textarea,
    select {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="number"]:focus,
    input[type="date"]:focus,
    input[type="tel"]:focus,
    textarea:focus,
    select:focus {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #6a9fff;
        box-shadow: 0 0 0 2px rgba(106, 159, 255, 0.3);
    }
    input::placeholder,
    textarea::placeholder {
        color: #888;
    }
    input[disabled],
    textarea[disabled],
    select[disabled] {
        background-color: #1a1a1a;
        color: #666;
    }
    .input-group-label {
        background-color: #333;
        color: #e0e0e0;
        border-color: #444;
    }
    .callout{
        background-color: #222;
    }
    .callout.secondary {
        background-color: #1a1a1a;
    }
    .card-section {
        background-color: #2E2E2E;
        color: #f0f0f0;
    }
    .card-divider {
        background-color: #262626;
        color: #f0f0f0;
    }
    table.unstriped tbody tr {
        background-color: #2E2E2E;
    }
    table tbody tr {
        background-color: #2E2E2E;
    }
    .callout.success {
        background-color: #1B3A2B;
        border-color: #2E7D32;
    }
    .callout.warning {
        background-color: #3A2B1B;
        border-color: #F57C00;
    }
    .callout.alert {
        background-color: #3A1B1B;
        border-color: #D32F2F;
    }
    .callout.info {
        background-color: #1B2B3A;
        border-color: #1976D2;
    }
    .callout.primary {
        background-color: #1B1B3A;
        border-color: #3F51B5;
    }
    .callout.secondary {
        background-color: #2B2B2B;
        border-color: #424242;
    }
    /* Modal windows */

    /* Payment form dark theme enhancements */
    .payment-submit {
        background-color: #065f46;
        color: #ffffff;
        border: none;
        transition: background-color 0.3s ease;
    }

    .payment-submit:hover {
        background-color: #047857;
    }

    .payment-submit:active {
        background-color: #065f46;
    }

    .payment-submit:disabled {
        background-color: #1f2937;
        opacity: 0.7;
    }

    .payment-options .button {
        background-color: #1f2937;
        color: #e5e7eb;
        border: 1px solid #374151;
    }

    .payment-options .button:hover {
        background-color: #374151;
    }

    .payment-options .button.active {
        background-color: #065f46;
        border-color: #047857;
    }

    /* Stripe Elements iframe customization */
    .StripeElement {
        background-color: #1f2937;
        border: 1px solid #374151;
        border-radius: 4px;
        padding: 12px;
    }

    .StripeElement--focus {
        border-color: #047857;
        box-shadow: 0 0 0 1px #047857;
    }
    
    .reveal {
        background: #23272e !important;
        color: #e3eaf3 !important;
        border: 1px solid #444b5a !important;
        box-shadow: 0 2px 16px rgba(0,0,0,0.7) !important;
    }
    a[rel="external"]::after, .external-link::after, a[rel="external nofollow"]::after {
        filter: invert(1);
    }
    /* Help text dark theme */
    .help-text {
        color: #9E9E9E; /* Grey text for help text in dark theme */
    }
    .help-text small {
        color: #9E9E9E; /* Grey text for small help text in dark theme */
    }
    /* Foundation form text variants */
    .form-text,
    .text-muted {
        color: #9E9E9E !important;
    }
    
    /* Dark theme button styles - dark blue instead of grey */
    .button {
        background-color: #1e3a5f;
        color: #ffffff;
        border: 1px solid #2a4d7a;
        transition: all 0.3s ease;
    }
    
    .button:hover {
        background-color: #2a4d7a;
        color: #ffffff;
        border-color: #3a5d8a;
        box-shadow: 0 2px 4px rgba(42, 77, 122, 0.2);
    }
    
    .button:active {
        background-color: #19304d;
        box-shadow: 0 1px 2px rgba(42, 77, 122, 0.1);
    }
    
    .button.secondary {
        background-color: #2d4158;
        border-color: #3a5270;
    }
    
    .button.secondary:hover {
        background-color: #3a5270;
        border-color: #4a6280;
    }
    
    .button.alert {
        background-color: #8b2635;
        border-color: #a73042;
    }
    
    .button.alert:hover {
        background-color: #a73042;
        border-color: #c33a4f;
    }
    
    .button.tiny,
    .button.small {
        background-color: #1e3a5f;
        border-color: #2a4d7a;
    }
    
    .button.tiny:hover,
    .button.small:hover {
        background-color: #2a4d7a;
        border-color: #3a5d8a;
    }
    
    /* Button group dark theme */
    .button-group .button {
        background-color: #1e3a5f;
        border-color: #2a4d7a;
    }
    
    .button-group .button:hover {
        background-color: #2a4d7a;
    }
    
    .button-group .button.active {
        background-color: #3a5d8a;
        border-color: #4a6d9a;
        box-shadow: 0 0 0 2px rgba(58, 93, 138, 0.3);
    }
    
    /* Table button adjustments */
    table .button {
        margin-bottom: 0;
    }
}

@media (prefers-color-scheme: dark) {
    .payment-form .field-control,
    .payment-form input[type="text"],
    .payment-form input[type="email"],
    .payment-form input[type="password"],
    .payment-form input[type="number"],
    .payment-form input[type="date"],
    .payment-form input[type="tel"],
    .payment-form textarea,
    .payment-form select,
    .payment-form .stripe-element,
    .StripeElement {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }

    .payment-form .field-control:focus,
    .payment-form .stripe-element--focus,
    .StripeElement--focus {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #6a9fff;
        box-shadow: 0 0 0 2px rgba(106, 159, 255, 0.3);
    }

    .payment-form input::placeholder,
    .payment-form textarea::placeholder {
        color: #888;
    }

    .payment-form .input-group-label {
        background-color: #333;
        color: #e0e0e0;
        border-color: #444;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --autofill-background: #2a2a2a;
        --autofill-text: #f5f5f5;
    }
}

/* Contact page: phone + WhatsApp card */
.tp-contact-card__title {
    margin-bottom: 0.85rem;
}

.tp-contact-card__actions {
    --tp-contact-action-width: 189px;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: center;
    justify-items: center;
}

@media screen and (min-width: 40em) {
    .tp-contact-card__actions {
        grid-template-columns: auto auto;
        justify-content: center;
        justify-items: center;
    }
}

.tp-contact-card__actions .button {
    margin: 0;
}

.tp-contact-card__call.button {
    background: #1779ba;
    border: 1px solid #1779ba;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    min-height: 40px;
    width: var(--tp-contact-action-width);
    max-width: 100%;
    white-space: nowrap;
    font-size: 0.95rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tp-contact-card__call.button:hover,
.tp-contact-card__call.button:focus {
    background: #14679e;
    border-color: #14679e;
}

.tp-contact-card__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tp-contact-action-width);
    max-width: 100%;
}

@media screen and (min-width: 40em) {
    .tp-contact-card__whatsapp {
        justify-self: end;
    }
}

.tp-contact-card__whatsapp picture,
.tp-contact-card__whatsapp img {
    width: 100%;
}

.tp-contact-card__whatsapp img {
    height: 40px;
    max-height: none;
    object-fit: contain;
}

/* WhatsApp CTA button (image-based) */
.whatsapp-us-button {
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
}

.whatsapp-us-button picture,
.whatsapp-us-button img {
    display: block;
}

.whatsapp-us-button img {
    max-height: 40px;
    width: auto;
    max-width: 100%;
}

.tp-live-chat-card__title {
    margin-bottom: 0.75rem;
}

.tp-live-chat-card__button {
    margin-bottom: 0;
}

.tp-live-chat {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.tp-live-chat [hidden] {
    display: none !important;
}

.tp-live-chat__launcher,
.tp-live-chat__titlebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 0;
    background: linear-gradient(135deg, #0f6f5c, #1779ba);
    box-shadow: 0 18px 40px rgba(12, 45, 60, 0.25);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    text-align: left;
}

.tp-live-chat__launcher {
    border-radius: 999px;
    padding: 0.9rem 1.1rem;
}

.tp-live-chat__launcher-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-align: left;
}

.tp-live-chat__launcher-copy span:last-child {
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.9;
}

.tp-live-chat__launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.tp-live-chat__launcher-logo {
    width: 1.65rem;
    height: 1.65rem;
    object-fit: contain;
    display: block;
}

.tp-live-chat__panel {
    width: min(24rem, calc(100vw - 2rem));
    max-height: min(40rem, calc(100vh - 1.5rem));
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 28px 60px rgba(12, 45, 60, 0.28);
    border: 1px solid rgba(23, 121, 186, 0.14);
}

.tp-live-chat__panel-header {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #0f6f5c, #1779ba);
    color: #fff;
}

.tp-live-chat__titlebar-toggle {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1rem 0.9rem 0.95rem 1rem;
    border-radius: 0;
    box-shadow: none;
}

.tp-live-chat__titlebar-copy {
    min-width: 0;
}

.tp-live-chat__titlebar-copy strong,
.tp-live-chat__titlebar-copy span {
    margin: 0;
    white-space: normal;
}

.tp-live-chat__titlebar-copy strong {
    font-size: 1rem;
}

.tp-live-chat__titlebar-copy span:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
}

.tp-live-chat__panel-actions {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.7rem 0.75rem 0 0;
}

.tp-live-chat__panel-action {
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.tp-live-chat__panel-action:hover,
.tp-live-chat__panel-action:focus,
.tp-live-chat__titlebar-toggle:hover,
.tp-live-chat__titlebar-toggle:focus {
    filter: brightness(1.06);
}

.tp-live-chat__panel-body {
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    background: #fff;
}

.tp-live-chat__close {
    font-size: 1.5rem;
}

.tp-live-chat__status {
    margin: 1rem 1rem 0;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    font-size: 0.88rem;
    background: #edf6f3;
    color: #0f6f5c;
}

.tp-live-chat__status[data-tone="error"] {
    background: #fdeeed;
    color: #ad2e24;
}

.tp-live-chat__status[data-tone="warning"] {
    background: #fff5df;
    color: #946200;
}

.tp-live-chat__status[data-tone="pending"] {
    background: #eef4fb;
    color: #125d95;
}

.tp-live-chat__start-form,
.tp-live-chat__message-form {
    padding: 1rem;
    margin: 0;
}

.tp-live-chat__start-form label,
.tp-live-chat__message-form label {
    display: block;
    font-weight: 600;
    color: #26343d;
}

.tp-live-chat__start-form input,
.tp-live-chat__start-form textarea,
.tp-live-chat__message-form textarea {
    margin-top: 0.35rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    border: 1px solid #c9d7de;
    box-shadow: none;
    background: #fff;
    color: #22323a;
}

.tp-live-chat__start-form input:focus,
.tp-live-chat__start-form textarea:focus,
.tp-live-chat__message-form textarea:focus {
    border-color: #1779ba;
    box-shadow: 0 0 0 3px rgba(23, 121, 186, 0.12);
}

.tp-live-chat__start-form .button,
.tp-live-chat__message-form .button {
    margin: 0;
}

.tp-live-chat__conversation {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.tp-live-chat__messages {
    overflow-y: auto;
    padding: 0 1rem;
    display: grid;
    gap: 0.75rem;
}

.tp-live-chat__message {
    border-radius: 18px;
    padding: 0.85rem 0.95rem;
    background: #f3f7f8;
    color: #22323a;
}

.tp-live-chat__message--agent {
    background: #e9f4fb;
}

.tp-live-chat__message-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
    color: #5b6b76;
}

.tp-live-chat__message-body {
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
}

.tp-live-chat__message-body a {
    color: #0f6f5c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.tp-live-chat__typing-indicator {
    justify-self: start;
    border-radius: 999px;
    background: #edf6f3;
    color: #0f6f5c;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
}

.tp-live-chat--minimized .tp-live-chat__panel {
    max-height: none;
}

@media screen and (max-width: 39.9375em) {
    .tp-live-chat {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        align-items: stretch;
    }

    .tp-live-chat__launcher {
        width: 100%;
        justify-content: center;
    }

    .tp-live-chat__titlebar-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .tp-live-chat__panel {
        width: 100%;
        max-height: min(38rem, calc(100vh - 1.5rem));
    }

    .tp-live-chat__panel-header {
        align-items: center;
    }

    .tp-live-chat__panel-actions {
        padding-top: 0;
        padding-bottom: 0;
        align-self: stretch;
        align-items: center;
    }

    .tp-live-chat__panel-action {
        width: 2.4rem;
        height: 2.4rem;
    }
}
