:root {
    --ttfp-navy: #071b34;
    --ttfp-blue: #0798d4;
    --ttfp-text: #15243a;
    --ttfp-muted: #64748b;
    --ttfp-border: #d9e1ea;
    --ttfp-soft: #f7f9fc;
    --ttfp-danger: #b42318;
    --ttfp-trustpilot: #00b67a;
    --ttfp-radius: 14px;
    --ttfp-shadow: 0 12px 34px rgba(7, 27, 52, 0.07);
}

.ttfp-decorative-step-label,
.ttfp-duplicate-support-hidden,
.ttfp-legacy-control-hidden {
    display: none !important;
}

.ttfp-cart-editor,
.ttfp-purchase-options,
.ttfp-order-options-summary,
.ttfp-trustpilot-card {
    box-sizing: border-box;
    color: var(--ttfp-text);
    font-family: inherit;
}

.ttfp-cart-editor *,
.ttfp-purchase-options *,
.ttfp-order-options-summary *,
.ttfp-trustpilot-card * {
    box-sizing: border-box;
}

/* Keep the original Ticket Time artwork and proportions, but stop page-specific upscaling. */
body.ttfp-logo-fix .ttfp-site-logo,
body.ttfp-logo-fix header img.custom-logo,
body.ttfp-logo-fix .site-header img.custom-logo,
body.ttfp-logo-fix #masthead img.custom-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: clamp(148px, 11vw, 180px) !important;
    max-height: 132px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
}

body.ttfp-logo-fix .ttfp-site-logo-link,
body.ttfp-logo-fix .ttfp-site-branding {
    width: auto !important;
    max-width: 180px !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
}

body.ttfp-logo-fix .ttfp-site-logo-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* Classic WooCommerce checkout, aligned at the top on every page. */
body.ttfp-checkout-layout-fix form.checkout.woocommerce-checkout.ttfp-checkout-form-enhanced,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #customer_details,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #customer_details > .col-1,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #customer_details > .col-2,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #order_review_heading,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #order_review {
    box-sizing: border-box !important;
}

body.ttfp-checkout-layout-fix form.checkout.woocommerce-checkout.ttfp-checkout-form-enhanced,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr) !important;
    grid-template-areas:
        "notices notices"
        "customer review" !important;
    column-gap: clamp(22px, 2.4vw, 38px) !important;
    row-gap: 14px !important;
    align-items: start !important;
    width: 100% !important;
}

body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced::before,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced::after {
    display: none !important;
    content: none !important;
}

body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced > .woocommerce-NoticeGroup,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced > .woocommerce-notices-wrapper,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced > .woocommerce-error,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced > .woocommerce-message,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced > .woocommerce-info {
    grid-area: notices !important;
    width: 100% !important;
    margin: 0 0 10px !important;
}

body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #customer_details {
    grid-area: customer !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
    align-self: start !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #customer_details::before,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #customer_details::after {
    display: none !important;
    content: none !important;
}

body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #customer_details > .col-1,
body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #customer_details > .col-2 {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #order_review_heading.ttfp-checkout-review-heading-source {
    display: none !important;
}

body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #order_review .ttfp-checkout-review-heading {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 18px !important;
    padding: 0 2px !important;
    color: var(--ttfp-navy);
    font-size: clamp(1.25rem, 1.6vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
}

body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #order_review {
    grid-area: review !important;
    position: sticky !important;
    top: 24px !important;
    align-self: start !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: clamp(16px, 1.7vw, 22px) !important;
    overflow: visible !important;
    border: 1px solid var(--ttfp-border) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: var(--ttfp-shadow) !important;
    transform: none !important;
}

body.admin-bar.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #order_review {
    top: 56px !important;
}

body.ttfp-checkout-layout-fix form.checkout .form-row,
body.ttfp-checkout-layout-fix form.checkout .woocommerce-form-row {
    box-sizing: border-box;
    max-width: 100%;
}

body.ttfp-checkout-layout-fix form.checkout input.input-text,
body.ttfp-checkout-layout-fix form.checkout textarea,
body.ttfp-checkout-layout-fix form.checkout select,
body.ttfp-checkout-layout-fix form.checkout .select2-container {
    max-width: 100% !important;
}

/* Editable ticket cart. */
.ttfp-cart-editor,
.ttfp-purchase-options {
    width: 100%;
    margin: 0 0 24px;
    padding: clamp(17px, 2vw, 22px);
    border: 1px solid var(--ttfp-border);
    border-radius: var(--ttfp-radius);
    background: #fff;
    box-shadow: var(--ttfp-shadow);
}

body.ttfp-checkout-layout-fix #order_review .ttfp-cart-editor {
    margin: 0 0 18px;
    padding: 0 0 18px;
    border: 0;
    border-bottom: 1px solid var(--ttfp-border);
    border-radius: 0;
    box-shadow: none;
}

.ttfp-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

.ttfp-section-heading h2 {
    margin: 0;
    color: var(--ttfp-navy);
    font: inherit;
    font-size: clamp(1.08rem, 1.5vw, 1.34rem);
    font-weight: 800;
    line-height: 1.25;
}

.ttfp-eyebrow {
    margin: 0 0 4px;
    color: var(--ttfp-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ttfp-cart-count {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf7fc;
    color: var(--ttfp-navy);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.ttfp-cart-status {
    min-height: 0;
    margin: 0;
    color: var(--ttfp-muted);
    font-size: 0.82rem;
}

.ttfp-cart-status:not(:empty) {
    margin: -4px 0 14px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #eff8ff;
}

.ttfp-cart-status.is-error {
    background: #fef3f2;
    color: var(--ttfp-danger);
}

.ttfp-cart-items {
    display: grid;
}

.ttfp-cart-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) minmax(126px, auto);
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--ttfp-border);
}

.ttfp-cart-item:first-child {
    padding-top: 2px;
    border-top: 0;
}

.ttfp-cart-item:last-child {
    padding-bottom: 3px;
}

.ttfp-cart-item__image {
    display: grid;
    width: 68px;
    height: 68px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--ttfp-border);
    border-radius: 10px;
    background: var(--ttfp-soft);
}

.ttfp-cart-item__image img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
}

.ttfp-cart-item__content {
    min-width: 0;
}

.ttfp-cart-item__content h3 {
    margin: 0 0 6px;
    color: var(--ttfp-navy);
    font: inherit;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.36;
    overflow-wrap: anywhere;
}

.ttfp-cart-item__content h3 a {
    color: inherit;
    text-decoration: none;
}

.ttfp-cart-item__content h3 a:hover {
    color: var(--ttfp-blue);
}

.ttfp-cart-item__meta {
    color: var(--ttfp-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.ttfp-cart-item__meta dl,
.ttfp-cart-item__meta p {
    margin: 0;
}

.ttfp-cart-item__meta dt,
.ttfp-cart-item__meta dd {
    display: inline;
    margin: 0;
}

.ttfp-cart-item__meta dd::after {
    content: " · ";
}

.ttfp-cart-item__meta dd:last-child::after {
    content: "";
}

.ttfp-cart-item__unit-price {
    margin-top: 6px;
    color: var(--ttfp-navy);
    font-size: 0.82rem;
    font-weight: 800;
}

.ttfp-cart-item__unit-price span {
    color: var(--ttfp-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.ttfp-cart-item__actions {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.ttfp-cart-item__actions > label {
    margin: 0;
    color: var(--ttfp-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.ttfp-quantity-control {
    display: grid;
    grid-template-columns: 34px 46px 34px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
}

.ttfp-quantity-control .ttfp-quantity-button,
.ttfp-quantity-control input.qty {
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ttfp-navy) !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    line-height: 36px !important;
    text-align: center !important;
}

.ttfp-quantity-control .ttfp-quantity-button {
    cursor: pointer;
}

.ttfp-quantity-control .ttfp-quantity-button:hover,
.ttfp-quantity-control .ttfp-quantity-button:focus-visible {
    background: #edf7fc !important;
    color: var(--ttfp-blue) !important;
    outline: 0;
}

.ttfp-quantity-control input.qty {
    border-right: 1px solid #e2e8f0 !important;
    border-left: 1px solid #e2e8f0 !important;
    appearance: textfield;
}

.ttfp-quantity-control input.qty::-webkit-inner-spin-button,
.ttfp-quantity-control input.qty::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.ttfp-cart-item__subtotal {
    color: var(--ttfp-navy);
    font-size: 0.9rem;
    font-weight: 800;
}

.ttfp-remove-item {
    margin: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--ttfp-danger);
    font: inherit;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.ttfp-cart-editor__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
    padding: 14px 15px;
    border-radius: 10px;
    background: var(--ttfp-soft);
    color: var(--ttfp-navy);
    font-size: 0.9rem;
    font-weight: 700;
}

.ttfp-cart-editor__footer strong {
    font-size: 1.02rem;
    font-weight: 900;
}

.ttfp-cart-editor.is-updating {
    position: relative;
    pointer-events: none;
}

.ttfp-cart-editor.is-updating::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.7);
    content: "";
}

.ttfp-cart-empty {
    padding: 22px;
    border-radius: 10px;
    background: var(--ttfp-soft);
    text-align: center;
}

.ttfp-cart-empty p {
    margin: 0 0 12px;
}

/* Keep WooCommerce totals and payment, but not a second copy of product rows. */
body.ttfp-checkout-hide-review-items #order_review.ttfp-review-has-cart-editor.ttfp-hide-duplicate-items table.woocommerce-checkout-review-order-table > thead,
body.ttfp-checkout-hide-review-items #order_review.ttfp-review-has-cart-editor.ttfp-hide-duplicate-items table.woocommerce-checkout-review-order-table > tbody {
    display: none !important;
}

body.ttfp-checkout-layout-fix #order_review table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    margin: 0 0 18px !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: transparent !important;
}

body.ttfp-checkout-layout-fix #order_review table.woocommerce-checkout-review-order-table th,
body.ttfp-checkout-layout-fix #order_review table.woocommerce-checkout-review-order-table td {
    padding: 11px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ttfp-border) !important;
    background: transparent !important;
    color: var(--ttfp-text) !important;
    font-size: 0.88rem;
    line-height: 1.4;
    vertical-align: top;
}

body.ttfp-checkout-layout-fix #order_review table.woocommerce-checkout-review-order-table th:last-child,
body.ttfp-checkout-layout-fix #order_review table.woocommerce-checkout-review-order-table td:last-child {
    text-align: right;
}

body.ttfp-checkout-layout-fix #order_review table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
body.ttfp-checkout-layout-fix #order_review table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    padding-top: 15px !important;
    border-bottom: 0 !important;
    color: var(--ttfp-navy) !important;
    font-size: 1.02rem;
    font-weight: 900;
}

body.ttfp-checkout-layout-fix #order_review #payment {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.ttfp-checkout-layout-fix #order_review #payment ul.payment_methods,
body.ttfp-checkout-layout-fix #order_review #payment .place-order {
    margin: 0 !important;
    padding: 16px 0 0 !important;
    border: 0 !important;
}

body.ttfp-checkout-layout-fix #order_review #payment .payment_box {
    margin: 12px 0 0 !important;
    padding: 13px 14px !important;
    border-radius: 10px !important;
    background: var(--ttfp-soft) !important;
    color: var(--ttfp-text) !important;
    font-size: 0.84rem;
}

body.ttfp-checkout-layout-fix #order_review #payment .payment_box::before {
    display: none !important;
}

body.ttfp-checkout-layout-fix #order_review #place_order,
body.ttfp-checkout-layout-fix #order_review button[name="woocommerce_checkout_place_order"] {
    width: 100% !important;
    min-height: 50px !important;
    margin: 14px 0 0 !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
}

/* Existing Ticket Time Core cart controls remain visually usable during AJAX refreshes. */
body.ttfp-checkout-layout-fix #order_review .ttfp-legacy-quantity-button {
    display: inline-grid !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 2px !important;
    padding: 0 !important;
    place-items: center !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: var(--ttfp-navy) !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.ttfp-checkout-layout-fix #order_review .ttfp-legacy-remove-button,
body.ttfp-checkout-layout-fix #order_review .ttfp-legacy-empty-button {
    display: inline-flex !important;
    width: auto !important;
    min-height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 3px 0 !important;
    padding: 5px 9px !important;
    border: 1px solid #fecaca !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: var(--ttfp-danger) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

/* Gift and invoice section. */
.ttfp-purchase-options {
    display: grid;
    gap: 13px;
}

.ttfp-purchase-options .ttfp-section-heading {
    margin-bottom: 2px;
}

.ttfp-option-card {
    overflow: hidden;
    border: 1px solid var(--ttfp-border);
    border-radius: 12px;
    background: #fff;
}

.ttfp-option-card .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.ttfp-option-toggle {
    padding: 14px 16px !important;
    background: var(--ttfp-soft);
}

.ttfp-option-toggle label,
.ttfp-toggle-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: var(--ttfp-navy);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
}

.ttfp-option-toggle input[type="checkbox"],
.ttfp-sub-checkbox input[type="checkbox"] {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    min-height: 19px !important;
    margin: 0 !important;
    accent-color: var(--ttfp-blue);
}

.ttfp-option-help {
    margin: 0 !important;
    padding: 0 16px 13px !important;
    background: var(--ttfp-soft);
    color: var(--ttfp-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.ttfp-conditional-fields {
    padding: 17px 16px 3px;
    border-top: 1px solid var(--ttfp-border);
}

.ttfp-conditional-fields[hidden] {
    display: none !important;
}

.ttfp-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 15px;
}

.ttfp-fields-grid .form-row-wide {
    float: none !important;
    width: 100% !important;
}

.ttfp-fields-grid .ttfp-grid-full {
    grid-column: 1 / -1;
}

.ttfp-purchase-options .form-row label:not(.checkbox) {
    color: var(--ttfp-navy);
    font-size: 0.79rem;
    font-weight: 700;
}

.ttfp-purchase-options input.input-text,
.ttfp-purchase-options textarea,
.ttfp-purchase-options select,
.ttfp-purchase-options .select2-container .select2-selection--single {
    width: 100% !important;
    min-height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--ttfp-text) !important;
    box-shadow: none !important;
}

.ttfp-purchase-options input.input-text,
.ttfp-purchase-options textarea,
.ttfp-purchase-options select {
    padding: 10px 12px !important;
}

.ttfp-purchase-options textarea {
    min-height: 96px !important;
    resize: vertical;
}

.ttfp-purchase-options input.input-text:focus,
.ttfp-purchase-options textarea:focus,
.ttfp-purchase-options select:focus {
    border-color: var(--ttfp-blue) !important;
    outline: 3px solid rgba(7, 152, 212, 0.14) !important;
    outline-offset: 0;
}

.ttfp-order-options-summary {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--ttfp-border);
    border-radius: var(--ttfp-radius);
    background: #fff;
}

.ttfp-order-options-summary h2 {
    margin: 0 0 14px;
    color: var(--ttfp-navy);
    font-size: 1.12rem;
}

.ttfp-order-options-summary dl {
    display: grid;
    gap: 9px;
    margin: 0;
}

.ttfp-order-options-summary dl > div {
    display: grid;
    grid-template-columns: minmax(130px, 0.38fr) minmax(0, 0.62fr);
    gap: 14px;
}

.ttfp-order-options-summary dt {
    color: var(--ttfp-muted);
    font-weight: 700;
}

.ttfp-order-options-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Trustpilot, compact and accurate. The last star can be partially filled from the live score. */
.ttfp-trustpilot-card {
    display: flex;
    width: 100%;
    max-width: 760px;
    min-height: 64px;
    align-items: center;
    gap: 13px;
    margin: 0;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    background: #14253d;
    color: #fff !important;
    box-shadow: none;
    text-decoration: none !important;
}

.ttfp-trustpilot-compact {
    flex-wrap: wrap;
}

.ttfp-trustpilot-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: #fff;
    white-space: nowrap;
}

.ttfp-trustpilot-brand strong {
    color: inherit;
    font-size: clamp(1.05rem, 1.5vw, 1.34rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
}

.ttfp-trustpilot-star {
    display: inline-grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 5px;
    background: var(--ttfp-trustpilot);
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

.ttfp-trustpilot-stars {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
}

.ttfp-trustpilot-stars > span {
    --ttfp-star-fill: 100%;
    display: inline-grid;
    width: 23px;
    height: 23px;
    place-items: center;
    overflow: hidden;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        var(--ttfp-trustpilot) 0,
        var(--ttfp-trustpilot) var(--ttfp-star-fill),
        rgba(255, 255, 255, 0.2) var(--ttfp-star-fill),
        rgba(255, 255, 255, 0.2) 100%
    );
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.ttfp-trustpilot-score,
.ttfp-trustpilot-count {
    display: grid;
    flex: 0 0 auto;
    gap: 1px;
    min-width: 64px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.ttfp-trustpilot-score strong,
.ttfp-trustpilot-count strong {
    color: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.ttfp-trustpilot-score small,
.ttfp-trustpilot-count small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
}

.ttfp-trustpilot-cta {
    display: inline-flex;
    min-width: 154px;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

.ttfp-trustpilot-card:hover .ttfp-trustpilot-cta,
.ttfp-trustpilot-card:focus-visible .ttfp-trustpilot-cta {
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.08);
}

.ttfp-trustpilot-official {
    display: block;
    min-height: 62px;
    padding: 10px 13px;
}

.ttfp-trustpilot-official .trustpilot-widget,
.ttfp-trustpilot-official iframe {
    display: block;
    width: 100% !important;
    min-height: 42px;
    border: 0 !important;
}

.ttfp-trustpilot-link {
    justify-content: space-between;
}

.ttfp-crisp-open {
    cursor: pointer;
}

.ttfp-crisp-open:focus-visible,
.ttfp-remove-item:focus-visible,
.ttfp-trustpilot-card:focus-visible {
    outline: 3px solid rgba(7, 152, 212, 0.35);
    outline-offset: 3px;
}

@media (max-width: 1200px) {
    body.ttfp-logo-fix .ttfp-site-logo,
    body.ttfp-logo-fix header img.custom-logo,
    body.ttfp-logo-fix .site-header img.custom-logo,
    body.ttfp-logo-fix #masthead img.custom-logo {
        max-width: 158px !important;
        max-height: 118px !important;
    }

    body.ttfp-logo-fix .ttfp-site-logo-link,
    body.ttfp-logo-fix .ttfp-site-branding {
        max-width: 158px !important;
    }

    .ttfp-trustpilot-card {
        gap: 10px;
    }

    .ttfp-trustpilot-cta {
        min-width: 138px;
    }
}

@media (max-width: 1080px) {
    body.ttfp-checkout-layout-fix form.checkout.woocommerce-checkout.ttfp-checkout-form-enhanced,
    body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "notices"
            "customer"
            "review" !important;
        gap: 18px !important;
    }

    body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #order_review {
        position: static !important;
        top: auto !important;
    }

}

@media (max-width: 782px) {
    body.ttfp-logo-fix .ttfp-site-logo,
    body.ttfp-logo-fix header img.custom-logo,
    body.ttfp-logo-fix .site-header img.custom-logo,
    body.ttfp-logo-fix #masthead img.custom-logo {
        max-width: 132px !important;
        max-height: 100px !important;
    }

    body.ttfp-logo-fix .ttfp-site-logo-link,
    body.ttfp-logo-fix .ttfp-site-branding {
        max-width: 132px !important;
    }

    .ttfp-cart-item {
        grid-template-columns: 62px minmax(0, 1fr) minmax(116px, auto);
        gap: 12px;
    }

    .ttfp-cart-item__image {
        width: 62px;
        height: 62px;
    }

    .ttfp-fields-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ttfp-fields-grid .ttfp-grid-full {
        grid-column: auto;
    }

    .ttfp-order-options-summary dl > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .ttfp-trustpilot-card {
        max-width: 100%;
        min-height: 0;
    }

    .ttfp-trustpilot-cta {
        min-width: 132px;
    }

    body.ttfp-crisp-enabled.woocommerce-checkout {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    body.ttfp-crisp-enabled.woocommerce-checkout .crisp-client .cc-tlyw {
        right: auto !important;
        left: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 560px) {
    body.ttfp-logo-fix .ttfp-site-logo,
    body.ttfp-logo-fix header img.custom-logo,
    body.ttfp-logo-fix .site-header img.custom-logo,
    body.ttfp-logo-fix #masthead img.custom-logo {
        max-width: 116px !important;
        max-height: 88px !important;
    }

    body.ttfp-logo-fix .ttfp-site-logo-link,
    body.ttfp-logo-fix .ttfp-site-branding {
        max-width: 116px !important;
    }

    body.ttfp-checkout-layout-fix form.checkout.ttfp-checkout-form-enhanced #order_review {
        padding: 15px !important;
        border-radius: 14px !important;
    }

    .ttfp-cart-editor,
    .ttfp-purchase-options {
        margin-bottom: 18px;
        padding: 16px;
        border-radius: 12px;
    }

    body.ttfp-checkout-layout-fix #order_review .ttfp-cart-editor {
        padding: 0 0 16px;
    }

    .ttfp-section-heading {
        gap: 10px;
        margin-bottom: 15px;
    }

    .ttfp-cart-item {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 11px;
        align-items: start;
    }

    .ttfp-cart-item__image {
        width: 56px;
        height: 56px;
    }

    .ttfp-cart-item__actions {
        grid-column: 1 / -1;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: start;
        gap: 10px;
        padding-left: 67px;
    }

    .ttfp-cart-item__actions > label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .ttfp-cart-item__subtotal {
        justify-self: end;
    }

    .ttfp-remove-item {
        justify-self: end;
    }

    .ttfp-cart-editor__footer {
        align-items: flex-start;
    }

    .ttfp-option-toggle,
    .ttfp-option-help,
    .ttfp-conditional-fields {
        padding-right: 13px !important;
        padding-left: 13px !important;
    }

    body.ttfp-checkout-layout-fix #order_review table.woocommerce-checkout-review-order-table th,
    body.ttfp-checkout-layout-fix #order_review table.woocommerce-checkout-review-order-table td {
        font-size: 0.82rem;
    }

    .ttfp-trustpilot-card {
        align-items: center;
        gap: 10px;
        padding: 13px;
        border-radius: 13px;
    }

    .ttfp-trustpilot-brand {
        flex: 1 1 132px;
    }

    .ttfp-trustpilot-stars {
        flex: 0 0 auto;
    }

    .ttfp-trustpilot-score,
    .ttfp-trustpilot-count {
        flex: 1 1 96px;
        min-width: 0;
    }

    .ttfp-trustpilot-cta {
        width: 100%;
        min-width: 0;
        flex: 1 0 100%;
        margin-left: 0;
    }
}

@media (max-width: 380px) {
    body.ttfp-logo-fix .ttfp-site-logo,
    body.ttfp-logo-fix header img.custom-logo,
    body.ttfp-logo-fix .site-header img.custom-logo,
    body.ttfp-logo-fix #masthead img.custom-logo {
        max-width: 106px !important;
        max-height: 80px !important;
    }

    body.ttfp-logo-fix .ttfp-site-logo-link,
    body.ttfp-logo-fix .ttfp-site-branding {
        max-width: 106px !important;
    }

    .ttfp-cart-item__actions {
        grid-template-columns: auto auto;
        padding-left: 0;
    }

    .ttfp-cart-item__subtotal {
        justify-self: start;
    }

    .ttfp-remove-item {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .ttfp-trustpilot-stars > span {
        width: 21px;
        height: 21px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ttfp-cart-editor,
    .ttfp-purchase-options,
    .ttfp-trustpilot-card,
    .ttfp-quantity-button {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* When the new cart is present, remove any second set of Ticket Time Core cart buttons. */
body.ttfp-checkout-hide-review-items #order_review.ttfp-review-has-cart-editor.ttfp-hide-duplicate-items .ttfp-legacy-quantity-button,
body.ttfp-checkout-hide-review-items #order_review.ttfp-review-has-cart-editor.ttfp-hide-duplicate-items .ttfp-legacy-remove-button,
body.ttfp-checkout-hide-review-items #order_review.ttfp-review-has-cart-editor.ttfp-hide-duplicate-items .ttfp-legacy-empty-button {
    display: none !important;
}
