.cuboid-checkout {
    --blue: #079bd2;
    --dark-blue: #075e95;
    --yellow: #f5c252;
    --border: #d9d9d9;

    background: var(--blue);
    padding: 36px;
    border-radius: 8px;
    color: #111;
}

.cuboid-checkout * {
    box-sizing: border-box;
}

.cuboid-checkout [hidden] {
    display: none !important;
}
/* Unit information button */
.cuboid-checkout__units-heading {
    position: relative;
}

.highlight-area {
    padding: 10px !important;
    border-radius: 5px !important;
    background: #d1f1ff !important;
    border: 1px solid #99c7db !important;
}
.highlight-area b {
    margin: 0 !important;
}

.cuboid-modal-title {
    margin-top: 0px;
}

.cuboid-modal-container {
    display: flex;
    gap: 20px;
    align-items: center;
}
.cuboid-modal-container img {
    max-width: 400px;
    background: #fff;
    border-radius: 10px;
}

.cuboid-checkout__modal-tool p {
    margin-bottom: 10px;
}

.cuboid-checkout__info-button {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
    padding: 8px 12px !important;
    border: 0;
    border-radius: 6px;
    background: #f0d597;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border: 1px solid #d2b269;
}

.cuboid-checkout__info-button:hover,
.cuboid-checkout__info-button:focus-visible {
    background: #e3e3e3;
}

.cuboid-checkout__info-button:focus-visible {
    outline: 3px solid rgba(7, 155, 210, 0.3);
    outline-offset: 3px;
}

/* Space calculator modal */
.cuboid-checkout__modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.cuboid-checkout__modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.7);
}

.cuboid-checkout__modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;

    width: min(1200px, calc(100% - 40px));
    max-height: calc(100vh - 40px);

    overflow: auto;

    transform: translate(-50%, -50%);

    border-radius: 12px;
    background: #fff;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cuboid-checkout__modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #111;
    color: #fff;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.cuboid-checkout__modal-content {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 2fr);

    min-height: 600px;
}
.cuboid-checkout__modal-tool {
    height: 100% !important;
    max-height: 500px;
    overflow: scroll;
}
.cuboid-checkout__modal-intro {
    padding: 30px;

    background: #fff;
}

.cuboid-checkout__modal-intro h2 {
    margin: 0 0 15px !important;
    line-height: 47px;
    font-size: 30px;
}

@media (max-width: 1200px) {
    .cuboid-modal-container {
        display: block;
    }
    .cuboid-modal-container img {
        margin-bottom: 15px !important;
    }
}

.cuboid-checkout__modal-intro p:last-child {
    margin-bottom: 0;
}

.cuboid-checkout__modal-tool {
    min-width: 0;
    min-height: 600px;

    padding: 0;

    background: #eeeeee;
}

.cuboid-checkout__modal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-height: 600px;

    padding: 30px;

    color: #666;
    text-align: center;
}

body.cuboid-space-calculator-open {
    overflow: hidden;
}
.cuboid-checkout__description p {
    font-size: 14px;
    margin-bottom: 20px;
}
@media (max-width: 767px) {
    .cuboid-checkout__info-button {
        position: static;

        margin: 0 auto 20px;
        margin-bottom: 20px !important;
    }
    .cuboid-checkout__units-heading {
        text-align:center;
    }

    .cuboid-checkout__modal-dialog {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
    }

    .cuboid-checkout__modal-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .cuboid-checkout__modal-intro {
        padding: 30px;
    }

    .cuboid-checkout__modal-tool,
    .cuboid-checkout__modal-placeholder {
        min-height: 400px;
    }
}
.cuboid-checkout__progress {
    display: flex;
    gap: 8px;
    max-width: 980px;
    margin: 0 auto 24px;
}

#cuboid-booking-checkout-3-protection-button {
    width: 100%;
    background: #fff;
    padding: 15px 20px;
}

.cuboid-checkout__progress span {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
}

.cuboid-checkout__progress span.is-active {
    background: #fff;
}

.cuboid-checkout__form {
    max-width: 980px;
    margin: auto;
}

.cuboid-checkout__panel {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 26px;
}

.cuboid-checkout__panel--heading {
    padding-bottom: 0;
    overflow: hidden;
    text-align: center;
}

.cuboid-checkout__step-heading {
    text-align: center;
}

.cuboid-checkout h2 {
    margin: 0 0 24px !important;
    text-transform: uppercase;
}

.cuboid-checkout h3 {
    margin-top: 30px;
}

.cuboid-checkout label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
}

.cuboid-checkout input,
.cuboid-checkout select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font: inherit;
}

.cuboid-checkout__location-field {
    width: min(320px, 100%);
    margin: 0 auto;
}

.cuboid-checkout__field {
    margin-bottom: 0px;
}

.cuboid-checkout__field p {
    margin-top: 0;
    color: #444;
}

.cuboid-checkout__step.is-active {
    gap: 10px;
}

.cuboid-checkout__grid {
    display: grid;
    gap: 18px;
}

.cuboid-checkout input, .cuboid-checkout select {
    width: 100%;
    min-height: 38px;
    padding: 6px 10px;
}

body .cuboid-checkout__consent label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px;
}

.cuboid-checkout__field label span {
    color: red;
}

.cuboid-checkout__grid--2 {
    grid-template-columns:
        repeat(1, minmax(0, 1fr));
}

.cuboid-checkout__step.is-active .cuboid-checkout__field {
    margin-bottom: 0px;
}

.cuboid-checkout__field {
    margin-bottom: 10px;
}
.cuboid-checkout__units {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cuboid-checkout__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    width: 100%;
    min-height: 260px;
    padding: 20px;

    border: 3px solid #e7e7e7;
    border-radius: 9px;

    background: #fafafa;
    color: #111;

    cursor: pointer;
}

.cuboid-checkout__unit:hover,
.cuboid-checkout__unit:focus,
.cuboid-checkout__unit.is-selected {
    border-color: var(--yellow);
}

.cuboid-checkout__unit:focus-visible {
    outline: 3px solid rgba(
            7,
            155,
            210,
            0.35
    );

    outline-offset: 3px;
}

.cuboid-checkout__unit img {
    width: 100%;
    height: 150px;
    margin-bottom: auto;
    object-fit: contain;
}

.cuboid-checkout__unit strong {
    font-size: 22px;
    line-height: 1.2;
    text-align: center;
    font-family: 'GoBold Bold', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
}

.cuboid-checkout__button label {
    margin-top: 20px;
    text-transform: capitalize !important;
}

.cuboid-checkout__panel > p, .cuboid-checkout__step-heading > p {
    margin-bottom: 4px;
}

.cuboid-checkout__unit-price {
    font-size: 15px;
}

.cuboid-checkout__unit-select,
.cuboid-checkout__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    border: 0;
    border-radius: 5px;

    background: var(--yellow);
    color: #111;

    font-weight: 700;
    cursor: pointer;
}

.cuboid-checkout__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cuboid-checkout__button--secondary {
    background: #ddd;
}

.cuboid-checkout__actions {
    display: flex;
    gap: 12px;
}

.cuboid-checkout__summary {
    padding-bottom: 0;
}

.cuboid-checkout__summary
> div:not(.cuboid-checkout__guarantee)
:not(.cuboid-checkout__actions)
:not(.cuboid-checkout__consent) {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin: 12px 0;
}

.cuboid-checkout__summary
> div:not(.cuboid-checkout__guarantee)
:not(.cuboid-checkout__actions)
:not(.cuboid-checkout__consent)::after {
    content: "";
    flex: 1;
    order: 2;
    border-bottom: 1px dotted #bbb;
}

.cuboid-checkout__summary strong {
    order: 1;
}

.cuboid-checkout__summary span {
    order: 3;
}

.cuboid-checkout__summary-total {
    padding-top: 18px;
    font-size: 18px;
    padding-bottom: 10px;
}

.cuboid-checkout__consent {
    margin: 22px 0;
}

.cuboid-checkout__consent label {
    font-weight: 400;
}

.cuboid-checkout__consent input {
    width: auto;
    min-height: auto;
}

.cuboid-checkout__guarantee {
    padding: 14px;
    margin: 26px -30px 0;

    border-radius: 0 0 9px 9px;

    background: var(--dark-blue);
    color: #fff;

    text-align: center;
}

.cuboid-checkout__panel--heading
.cuboid-checkout__guarantee {
    margin-bottom: -1px;
}

.cuboid-checkout__document-placeholder,
.cuboid-checkout__card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 280px;

    border: 1px solid #ccc;

    background: #fafafa;
    color: #888;
}

.cuboid-checkout__card-placeholder {
    min-height: 100px;
}

.cuboid-checkout__units-empty {
    grid-column: 1 / -1;

    margin: 0;
    padding: 24px;

    border-radius: 6px;

    background: #fff3cd;

    text-align: center;
}

.cuboid-checkout__message {
    margin-top: 12px;
    padding: 0 16px;
    border-radius: 6px;
    background: #F5C252 !important;
    color: #000 !important;
    font-weight: bold;
    text-align: center;
}

.cuboid-checkout__message:not(:empty) {
    padding-top: 14px;
    padding-bottom: 14px;
}

.cuboid-checkout__success {
    text-align: center;
}

.cuboid-checkout__honeypot {
    position: absolute !important;
    left: -9999px !important;

    width: 1px !important;
    height: 1px !important;

    opacity: 0 !important;
}

.cuboid-booking-error {
    padding: 15px;
    background: #fff3cd;
}

.cuboid-checkout input {
    display: block;
}
@media (max-width: 767px) {
    .cuboid-checkout {
        padding: 0px;
    }

    .cuboid-checkout__progress {
        display: none;
    }

    .cuboid-checkout__grid--2,
    .cuboid-checkout__units {
        grid-template-columns: 1fr;
    }

    .cuboid-checkout__panel {
        padding: 20px;
    }

    .cuboid-checkout__guarantee {
        margin-right: -20px;
        margin-left: -20px;
    }

    .cuboid-checkout__summary
    > div:not(.cuboid-checkout__guarantee)
    :not(.cuboid-checkout__actions)
    :not(.cuboid-checkout__consent) {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cuboid-checkout__summary
    > div::after {
        display: none;
    }

    .cuboid-checkout__summary span {
        margin-left: auto;
    }

    .cuboid-checkout__actions {
        flex-direction: column;
    }
}

/*
 * Protected Stripe confirmation page styles.
 * Restored to the original 1 / 3 / 1 card layout.
 */
.cuboid-booking-confirmation {
    max-width: 980px;
    margin: 40px auto;
    color: #fff;
}

.cuboid-booking-confirmation__panel {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}

.cuboid-booking-confirmation__panel h1,
.cuboid-booking-confirmation__panel h2 {
    margin-top: 0;
    color: #fff;
}

.cuboid-booking-confirmation__panel > p {
    margin-bottom: 36px;
    color: #fff;
    font-size: 18px;
}

.cuboid-booking-confirmation__details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0 0;
}

.cuboid-booking-confirmation__details > div {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 22px;
    border-radius: 10px;
    background: #fff;
    color: #111;
}

.cuboid-booking-confirmation__details > div:first-child,
.cuboid-booking-confirmation__details > div:last-child {
    grid-column: 1 / -1;
}

.cuboid-booking-confirmation__details > div::after {
    display: none;
}

.cuboid-booking-confirmation__details dt {
    margin: 0 0 8px;
    font-weight: 700;
}

.cuboid-booking-confirmation__details dd {
    margin: 0;
    text-align: left;
}

.cuboid-booking-confirmation__message {
    padding: 15px;
    border-radius: 6px;
    background: #fff3cd;
    color: #664d03;
}

@media (max-width: 767px) {
    .cuboid-booking-confirmation {
        margin: 20px auto;
    }

    .cuboid-booking-confirmation__details {
        grid-template-columns: 1fr;
    }

    .cuboid-booking-confirmation__details > div,
    .cuboid-booking-confirmation__details > div:first-child,
    .cuboid-booking-confirmation__details > div:last-child {
        grid-column: auto;
    }
}


/* Unit size description added below the monthly price. */
.cuboid-checkout__unit-description {
    text-align: center;
    display: block;
    height: fit-content;
    min-height: fit-content;
    color: #7c7c7c;
    margin-bottom: 8px;
    font-size: 13px;
}

/* Four-step agreement and signature flow. */
.cuboid-checkout textarea {
    width: 100%;
    min-height: 110px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font: inherit;
    resize: vertical;
}

.cuboid-checkout__contract-preview {
    height: 620px;
    margin: 24px 0;
    overflow: auto;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #f4f4f4;
}


.cuboid-checkout__signature {
    margin-top: 24px;
}

.cuboid-checkout__signature canvas {
    display: block;
    width: 100%;
    height: 180px;
    margin-top: 8px;
    border: 2px solid #d3d3d3;
    border-radius: 7px;
    background-color: #fff;
    background-image: linear-gradient(to bottom, transparent calc(100% - 42px), #ddd calc(100% - 41px), transparent calc(100% - 40px));
    cursor: crosshair;
    touch-action: none;
}

.cuboid-checkout__signature-actions {
    display: flex;
    justify-content: flex-end;
}

.cuboid-checkout__signature-actions .cuboid-checkout__button {
    margin-top: 10px;
}

@media (max-width: 767px) {
    .cuboid-checkout__contract-preview {
        height: 480px;
    }

    .cuboid-checkout__signature canvas {
        height: 150px;
    }
}

/* Fully booked storage units. */
.cuboid-checkout__unit {
    position: relative;
}

.cuboid-checkout__unit.is-fully-booked,
.cuboid-checkout__unit:disabled.is-fully-booked {
    opacity: 0.62;
    pointer-events: none;
    cursor: not-allowed;
    background: #eaf3f7;
    border-color: #d5e0e5;
}

.cuboid-checkout__unit.is-fully-booked:hover,
.cuboid-checkout__unit.is-fully-booked:focus,
.cuboid-checkout__unit.is-fully-booked:focus-visible {
    border-color: #d5e0e5;
    outline: 0;
}

.cuboid-checkout__unit.is-fully-booked .cuboid-checkout__unit-select {
    background: #aebdc5;
    color: #23323a;
    cursor: not-allowed;
}

.cuboid-checkout__unit-fully-booked {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 5px;
    background: #c85c64;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}


/* Callback prompt and fully booked unit enquiries. */
.cuboid-checkout__callback-prompt {
    max-width: 980px;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.cuboid-checkout__callback-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cuboid-checkout__callback-link:hover,
.cuboid-checkout__callback-link:focus-visible {
    color: #f4c34f;
}

.cuboid-checkout__unit.is-fully-booked,
.cuboid-checkout__unit:disabled.is-fully-booked {
    opacity: 0.8;
    pointer-events: auto;
    cursor: pointer;
}

.cuboid-checkout__unit.is-fully-booked .cuboid-checkout__unit-select {
    cursor: pointer;
}

.cuboid-checkout__unit.is-fully-booked:hover,
.cuboid-checkout__unit.is-fully-booked:focus,
.cuboid-checkout__unit.is-fully-booked:focus-visible {
    border-color: #c85c64;
    outline: 0;
}

.cuboid-checkout__enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
}

.cuboid-checkout__enquiry-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.cuboid-checkout__enquiry-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(680px, calc(100% - 40px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cuboid-checkout__enquiry-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cuboid-checkout__enquiry-content {
    padding: 42px 40px 40px;
}

.cuboid-checkout__enquiry-content h2 {
    margin: 0 55px 12px 0 !important;
    font-size: 30px;
    line-height: 1.15;
}

.cuboid-checkout__enquiry-content > p {
    margin: 0 0 25px;
}

.cuboid-checkout__hubspot-form {
    min-height: 160px;
}

body.cuboid-booking-enquiry-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .cuboid-checkout__callback-prompt {
        padding-inline: 15px;
        font-size: 14px;
    }

    .cuboid-checkout__enquiry-dialog {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
    }

    .cuboid-checkout__enquiry-content {
        padding: 36px 24px 28px;
    }

    .cuboid-checkout__enquiry-content h2 {
        font-size: 25px;
    }
}

/* Fully booked units remain actionable for availability enquiries. */
.cuboid-checkout__unit.is-fully-booked .cuboid-checkout__unit-select {
    background: #efbd43;
    color: #111;
}
