/*
 * Dedicated Dewpoint Host Open Play page.
 * Every selector is owned by this module.
 */

.dp-host-open-play-page {
    min-height: calc(100vh - 88px);
    background: #fefeff;
    color: #111827;
}

.dp-host-open-play-route {
    padding: 28px 24px 80px;
}

.dp-host-open-play-route > * {
    width: min(100%, 1480px);
    margin-right: auto;
    margin-left: auto;
}

.dp-host-open-play-unavailable {
    width: min(640px, 100%);
    margin: 64px auto;
    padding: 28px;
    border: 1px solid #e6e4f0;
    border-radius: 20px;
    background: #ffffff;
    color: #6b7280;
    text-align: center;
}



.dp-host-stage-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    color: #1d3557;
    font-size: 13px;
    font-weight: 800;
}

.dp-host-stage-field input,
.dp-host-stage-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #d7dee8;
    border-radius: 13px;
    color: #1d3557;
    background: #ffffff;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.35;
}

.dp-host-stage-field input:focus,
.dp-host-stage-field textarea:focus {
    outline: none;
    border-color: #d7dee8;
    box-shadow: none;
}

.dp-host-stage-title input {
    min-height: 48px;
}

.dp-host-stage-details textarea {
    min-height: 125px;
    resize: vertical;
    line-height: 1.55;
}

.dp-host-stage-back {
    align-self: flex-start;
    padding: 10px 15px;
    border: 1px solid #1d3557;
    border-radius: 10px;
    color: #1d3557;
    background: #ffffff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.dp-host-stage-back:hover {
    color: #1d3557;
    background: #ffffff;

    border: 1px solid #1d3557;}

.dp-host-stage-terms-panel {
    margin: 18px 0 10px;
    padding: 16px;
    border: 1px solid #d7dee8;
    border-radius: 14px;
    background: #ffffff;
}

.dp-host-stage-terms-panel > strong {
    display: block;
    margin-bottom: 10px;
    color: #1d3557;
    font-size: 14px;
}

.dp-host-stage-terms-copy {
    max-height: 155px;
    overflow-y: auto;
    padding-right: 8px;
    color: #1d3557;
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.dp-host-stage-terms {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 10px 0 16px;
    padding: 14px;
    border: 1px solid #d7dee8;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.dp-host-stage-terms input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #1d3557;
}

.dp-host-stage-terms span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dp-host-stage-terms b {
    color: #1d3557;
}

.dp-host-stage-terms small {
    color: #1d3557;
}

@media (max-width: 640px) {
}

@media (max-width: 768px) {
    .dp-host-open-play-route {
        padding: 24px 16px 64px;
    }
}


.dp-host-open-play-primary {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        #7548e9 0%,
        #2875e8 100%
    );

    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.dp-host-open-play-primary:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}


/* Dewpoint-owned Host Open Play payment-stage components */

.dp-host-pay-step-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid #1d3557;
    border-radius: 10px;
    background: #ffffff;
    color: #1d3557;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease;
}

.dp-host-pay-step-back:hover {
    background: #ffffff;
    border-color: #d7dee8;
    color: #1d3557;

    border: 1px solid #1d3557;}

.dp-host-pay-step-hold {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    padding: 11px 17px;
    border: 1px solid #d7dee8;
    border-radius: 15px;
    background: #ffffff;
}

.dp-host-pay-step-hold small {
    grid-column: 1 / -1;
    color: #1d3557;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.dp-host-pay-step-hold b {
    color: #1d3557;
    font-size: 27px;
    font-weight: 850;
    line-height: 1.08;
}

.dp-host-pay-step-hold span {
    color: #1d3557;
    font-size: 13px;
}

.dp-host-pay-step-hold-urgent {
    border-color: #d7dee8;
    background: #ffffff;
}

.dp-host-pay-step-hold-urgent b {
    color: #1d3557;
}

.dp-host-pay-step-receipt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 9px 17px;
    border: 1px solid #1d3557;
    border-radius: 24px;
    background: #ffffff;
    color: #1d3557;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease;
}

.dp-host-pay-step-receipt:hover {
    border-color: #d7dee8;
    background: #ffffff;
    color: #1d3557;

    border: 1px solid #1d3557;}

.dp-host-pay-step-receipt input[type="file"] {
    display: none;

    background: #ffffff;
    color: #1d3557;}

.dp-host-pay-step-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 12px 0 17px;
    padding: 15px;
    border: 1px solid #d7dee8;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.dp-host-pay-step-confirmation input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #1d3557;
}

.dp-host-pay-step-confirmation span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #1d3557;
}

.dp-host-pay-step-confirmation small {
    color: #1d3557;
}

.dp-host-pay-step-confirm-button {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid #1d3557;
    border-radius: 14px;
    background: #ffffff;
    color: #1d3557;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.dp-host-pay-step-confirm-button:hover {
    opacity: 0.93;

    background: #ffffff;
    color: #1d3557;
    border: 1px solid #1d3557;}

.dp-host-pay-step-confirm-button:disabled {
    opacity: 0.56;
    cursor: not-allowed;

    background: #ffffff;
    color: #1d3557;
    border: 1px solid #1d3557;}

@media (max-width: 640px) {
    .dp-host-pay-step-hold {
        width: 100%;
    }

    .dp-host-pay-step-hold b {
        font-size: 23px;
    }

    .dp-host-pay-step-hold span {
        font-size: 12px;
    }
}

/* ============================================================
   OPEN PLAY PARITY V2
   Regular Court | Open Play Court entry and shared visual shell
   ============================================================ */

.dp-booking-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 560px);
    margin: 0 auto 24px;
    padding: 5px;
    border: 1px solid #d6dcec;
    border-radius: 12px;
    background: #f2f4fa;
    box-shadow: 0 10px 28px rgba(7, 19, 54, 0.07);
}

.dp-booking-mode-switch button {
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5d6678;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.dp-booking-mode-switch button.is-active {
    background: linear-gradient(90deg, #071336, #17184d 58%, #6121d8);
    color: #fff;
    box-shadow: 0 7px 18px rgba(16, 24, 74, 0.2);
}

.dp-home-booking:has(.dp-open-play-details-step)
    > .dp-home-booking-title,
.dp-home-booking:has(.dp-open-play-details-step)
    > .dp-booking-mode-switch {
    display: none;
}

.dp-open-play-auth-gate {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #dce1ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(7, 19, 54, 0.08);
    color: #10172d;
    text-align: center;
}

.dp-open-play-auth-gate b {
    display: block;
    font-size: 21px;
}

.dp-open-play-auth-gate p {
    margin: 8px 0 20px;
    color: #687187;
}

.dp-open-play-auth-gate button {
    min-width: 220px;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #071336, #17184d, #6121d8);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.dp-host-open-play-embedded {
    min-height: 0;
    padding: 0;
    background: transparent;
}

.dp-host-open-play-embedded .dp-host-open-play-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dp-host-open-play-embedded .openplay-schedule-stage,
.dp-host-open-play-embedded .openplay-details-first,
.dp-host-open-play-embedded .openplay-checkout-page,
.dp-host-open-play-embedded .dp-open-play-success {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}

.dp-open-play-details-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-areas:
        "intro intro"
        "error error"
        "form summary";
    align-items: start;
    gap: 18px 24px;
    padding: 0 0 34px;
}

.dp-open-play-details-step > .dp-checkout-page-intro {
    grid-area: intro;
}

.dp-open-play-details-step > .auth-error {
    grid-area: error;
    margin: 0;
}

.dp-open-play-details-step .openplay-details-first-card {
    grid-area: form;
    padding: 26px;
    border: 1px solid #dce1ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(7, 19, 54, 0.08);
}

.dp-open-play-details-step .openplay-form-grid-first {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dp-open-play-details-step
    .openplay-form-grid-first > label:last-child {
    grid-column: 1 / -1;
}

.dp-open-play-details-step .openplay-form-grid-first label,
.dp-open-play-details-step .dp-host-stage-field {
    display: grid;
    gap: 7px;
    color: #10172d;
    font-weight: 800;
}

.dp-open-play-details-step select,
.dp-open-play-details-step input,
.dp-open-play-details-step textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #c8d0de;
    border-radius: 8px;
    background: #fff;
    color: #10172d;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.35;
}

.dp-open-play-details-step .dp-host-stage-title,
.dp-open-play-details-step .dp-host-stage-details {
    margin-top: 16px;
}

.dp-open-play-details-step .dp-host-stage-details textarea {
    min-height: 125px;
    resize: vertical;
}

.dp-open-play-details-step .dp-open-play-details-terms {
    margin-top: 18px;
}

.dp-open-play-details-summary {
    position: sticky;
    top: 105px;
    grid-area: summary;
    padding: 20px 22px;
    border: 1px solid #dce1ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(7, 19, 54, 0.08);
}

.dp-open-play-details-summary h2 {
    margin: 0 0 14px;
    color: #101743;
    font-size: 19px;
}

.dp-open-play-details-summary .line {
    min-height: 54px;
    align-items: center;
    border-color: #dce1ec;
}

.dp-open-play-details-summary .line.total {
    font-weight: 850;
}

.dp-open-play-parity {
    --dp-navy-deep: #050d25;
    --dp-navy: #101743;
    --dp-purple: #6323dc;
    --dp-ink: #11182b;
    --dp-muted: #687187;
    --dp-line: #dce1ec;
    --dp-soft: #f4f6fb;
    --dp-shadow: 0 12px 32px rgba(7, 19, 54, 0.08);
    margin: 0 auto;
    padding: 10px 0 48px;
    color: var(--dp-ink);
}

.dp-open-play-review,
.dp-open-play-payment {
    width: min(100%, 1180px);
}

.dp-open-play-parity .dp-checkout-page-intro {
    margin: 0 0 18px;
}

.dp-open-play-parity .dp-checkout-page-intro h1 {
    margin: 0;
    color: var(--dp-navy);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -0.025em;
}

.dp-open-play-parity .dp-checkout-page-intro p {
    margin: 4px 0 0;
    color: var(--dp-muted);
    font-size: 16px;
}

.dp-open-play-review .openplay-review-layout,
.dp-open-play-payment .openplay-payment-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.dp-open-play-review .openplay-review-main,
.dp-open-play-review .openplay-review-side,
.dp-open-play-payment .openplay-payment-main,
.dp-open-play-payment .openplay-payment-summary {
    border: 1px solid var(--dp-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--dp-shadow);
}

.dp-open-play-review .openplay-review-main,
.dp-open-play-payment .openplay-payment-main {
    padding: 22px;
}

.dp-open-play-review .openplay-review-side,
.dp-open-play-payment .openplay-payment-summary {
    top: 105px;
    padding: 20px 22px;
}

.dp-open-play-review .openplay-detail-grid article {
    border-radius: 8px;
    background: var(--dp-soft);
}

.dp-open-play-review .dp-host-open-play-primary,
.dp-open-play-payment .dp-host-pay-step-confirm-button {
    width: 100%;
    min-height: 52px;
    margin-top: 14px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--dp-navy-deep), var(--dp-navy) 58%, var(--dp-purple));
    color: #fff;
    box-shadow: 0 6px 16px rgba(7, 24, 61, 0.15);
}

.dp-open-play-payment .dp-host-pay-step-hold {
    border-color: #cfd8ec;
    border-radius: 9px;
    background: #f4f7fd;
    color: var(--dp-navy);
}

.dp-open-play-payment .openplay-payment-selected,
.dp-open-play-payment .openplay-proof-upload,
.dp-open-play-payment .dp-host-pay-step-confirmation {
    border-color: var(--dp-line);
    border-radius: 9px;
    background: #fff;
}

.dp-open-play-payment-details {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid var(--dp-line);
    border-radius: 8px;
    background: var(--dp-soft);
}

.dp-open-play-payment-details > div {
    display: grid;
    gap: 5px;
}

.dp-open-play-payment-details b {
    color: var(--dp-navy);
}

.dp-open-play-payment-details small {
    color: var(--dp-muted);
    line-height: 1.45;
}

.dp-open-play-payment-retry {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9a8ae;
    border-radius: 8px;
    background: #fff6f7;
    color: #8d2632;
    text-align: left;
}

.dp-open-play-payment-retry span {
    font-size: 13px;
    line-height: 1.45;
}

.dp-open-play-success .dp-new-success {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--dp-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--dp-shadow);
    text-align: center;
}

.dp-open-play-success .dp-success-mark {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #edf2f8;
    color: var(--dp-navy);
    font-size: 31px;
    font-weight: 900;
}

.dp-open-play-success .is-pending .dp-success-mark {
    background: #f5f1fb;
    color: var(--dp-purple);
}

.dp-open-play-success .dp-success-details {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    border: 1px solid var(--dp-line);
    border-radius: 9px;
    text-align: left;
}

.dp-open-play-success .dp-success-booking-info,
.dp-open-play-success .dp-success-qr {
    padding: 26px;
}

.dp-open-play-success .dp-success-booking-info {
    border-right: 1px solid var(--dp-line);
}

.dp-open-play-success .dp-success-booking-info h2,
.dp-open-play-success .dp-success-qr h2 {
    margin: 0 0 14px;
    color: var(--dp-navy);
    font-size: 19px;
}

.dp-open-play-success .dp-success-info-row,
.dp-open-play-confirmation-details > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-height: 49px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dp-line);
}

.dp-open-play-success .dp-success-info-row strong,
.dp-open-play-confirmation-details strong {
    color: var(--dp-navy);
    overflow-wrap: anywhere;
    text-align: right;
}

.dp-open-play-success .dp-success-schedule {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--dp-line);
}

.dp-open-play-success .dp-success-schedule p {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 6px 0 0;
}

.dp-open-play-success .dp-open-play-confirmation-details {
    padding: 18px 0 4px;
}

.dp-open-play-success .dp-success-status {
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf2f8;
}

.dp-open-play-success .is-pending .dp-success-status {
    background: #f2ecfa;
    color: var(--dp-purple);
}

.dp-open-play-success .dp-success-total strong {
    font-size: 24px;
}

.dp-open-play-success .dp-success-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dp-open-play-success .dp-success-qr-placeholder {
    display: grid;
    place-items: center;
    width: min(250px, 100%);
    min-height: 190px;
    padding: 24px;
    border: 1px dashed #aeb8c9;
    border-radius: 10px;
    background: var(--dp-soft);
    color: var(--dp-muted);
    line-height: 1.5;
}

.dp-open-play-success .dp-success-qr p {
    max-width: 290px;
    color: var(--dp-muted);
    line-height: 1.5;
}

.dp-open-play-success .dp-success-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 720px;
    margin: 28px auto 0;
}

.dp-open-play-success .dp-success-actions button {
    min-height: 52px;
    border: 1px solid var(--dp-navy);
    border-radius: 8px;
    background: #fff;
    color: var(--dp-navy);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.dp-open-play-success .dp-success-actions button.primary {
    border: 0;
    background: linear-gradient(90deg, var(--dp-navy-deep), var(--dp-navy), var(--dp-purple));
    color: #fff;
}

@media (max-width: 980px) {
    .dp-open-play-details-step,
    .dp-open-play-review .openplay-review-layout,
    .dp-open-play-payment .openplay-payment-layout,
    .dp-open-play-success .dp-success-details {
        grid-template-columns: 1fr;
    }

    .dp-open-play-details-step {
        grid-template-areas:
            "intro"
            "error"
            "form"
            "summary";
    }

    .dp-open-play-details-summary,
    .dp-open-play-review .openplay-review-side,
    .dp-open-play-payment .openplay-payment-summary {
        position: static;
    }

    .dp-open-play-success .dp-success-booking-info {
        border-right: 0;
        border-bottom: 1px solid var(--dp-line);
    }
}

@media (max-width: 700px) {
    .dp-booking-mode-switch {
        width: 100%;
        margin-bottom: 18px;
    }

    .dp-booking-mode-switch button {
        min-height: 44px;
        padding: 8px 10px;
        font-size: 14px;
    }

    .dp-open-play-details-step .openplay-details-first-card,
    .dp-open-play-details-summary,
    .dp-open-play-review .openplay-review-main,
    .dp-open-play-review .openplay-review-side,
    .dp-open-play-payment .openplay-payment-main,
    .dp-open-play-payment .openplay-payment-summary,
    .dp-open-play-success .dp-new-success {
        padding: 17px;
        border-radius: 9px;
    }

    .dp-open-play-details-step .openplay-form-grid-first,
    .dp-open-play-review .openplay-detail-grid,
    .dp-open-play-review .openplay-payment-options,
    .dp-open-play-success .dp-success-actions {
        grid-template-columns: 1fr;
    }

    .dp-open-play-success .dp-success-booking-info,
    .dp-open-play-success .dp-success-qr {
        padding: 18px 0;
    }

    .dp-open-play-success .dp-success-schedule {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 430px) {
    .dp-open-play-success .dp-success-info-row,
    .dp-open-play-confirmation-details > div,
    .dp-open-play-success .dp-success-schedule p {
        display: grid;
        gap: 3px;
    }

    .dp-open-play-success .dp-success-info-row strong,
    .dp-open-play-confirmation-details strong {
        text-align: left;
    }
}
