
/*
 * Omat varaukset - mobiiliasettelu.
 * Rajattu vain kirjautuneen asiakkaan sivulle.
 */
@media (max-width: 767px) {

    .my-bookings-main {
        width: 100%;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    .my-bookings-primary-card {
        width: 100%;
        min-width: 0;
        padding: 16px;
        border-radius: 24px;
        box-sizing: border-box;
    }

    .my-bookings-primary-card
    #new-booking-section {
        width: 100%;
        min-width: 0;
        padding: 16px;
        border-radius: 20px;
        box-sizing: border-box;
    }

    .my-bookings-primary-card
    #new-booking-details {
        min-width: 0;
    }

    .my-bookings-primary-card
    .booking-ui-v2 {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .my-bookings-primary-card
    #booking-form {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .my-bookings-primary-card
    #booking-form
    #booking-inline-terms {
        max-width: 100%;
        box-sizing: border-box;
    }

    .my-bookings-primary-card
    #booking-form
    #booking-summary {
        max-width: 100%;
        box-sizing: border-box;
    }

    .my-bookings-primary-card
    #booking-form
    .booking-completion {
        min-width: 0;
    }

    .my-bookings-primary-card
    #booking-form
    p {
        overflow-wrap: break-word;
    }
}

/* Omat varaukset: mobiilin kaksirivinen sivuston nimi. */
@media (max-width: 767px) {

    body.my-bookings-page
    #tailwind-site-header
    a[aria-label="Ulvilan Koirametsä"] > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 0 !important;
        height: 42px;
        min-height: 42px;
        white-space: normal !important;
    }

    body.my-bookings-page
    #tailwind-site-header
    a[aria-label="Ulvilan Koirametsä"] > div > .header-brand-name {
        display: block !important;
        font-size: 18px !important;
        line-height: 21px !important;
        white-space: nowrap !important;
    }
}


/* customer-header-responsive-v2 */
body.my-bookings-page .customer-header-inline {
    display: none;
}

body.my-bookings-page .customer-header-desktop-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 1023px) {
    body.my-bookings-page #tailwind-site-header > div {
        height: 64px !important;
    }

    body.my-bookings-page .customer-header-inline {
        display: flex;
        position: absolute;
        right: 76px;
        top: 50%;
        transform: translateY(-50%);
        align-items: center;
        z-index: 1;
    }

    body.my-bookings-page .customer-header-account {
        display: flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
    }

    body.my-bookings-page .customer-header-name {
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.my-bookings-page .customer-header-full {
        display: none;
    }

    body.my-bookings-page .customer-header-logout {
        margin: 0;
        flex-shrink: 0;
    }

    body.my-bookings-page .customer-header-logout button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 34px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,.2);
        background: rgba(255,255,255,.07);
        color: #fff;
        font-size: 17px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    body.my-bookings-page .customer-header-first {
        display: none;
    }

    body.my-bookings-page .customer-header-full {
        display: block;
        max-width: 240px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    body.my-bookings-page .customer-header-first {
        display: block;
        max-width: 55px;
    }
}


/* customer-header-size-tuning-v4 */
body.my-bookings-page
#tailwind-site-header
.customer-header-name {
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

body.my-bookings-page
#tailwind-site-header
.customer-header-logout {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.my-bookings-page
#tailwind-site-header
.customer-header-logout:hover,
body.my-bookings-page
#tailwind-site-header
.customer-header-logout:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
}

body.my-bookings-page
#tailwind-site-header
.customer-header-logout i {
    font-size: 28px !important;
    line-height: 1 !important;
}




body.my-bookings-page
#tailwind-site-header
.customer-header-logout button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    cursor: pointer;
}

body.my-bookings-page
#tailwind-site-header
.customer-header-logout button i {
    font-size: 28px !important;
    line-height: 1 !important;
}


/* customer-header-mobile-fullname-v1 */
@media (max-width: 767px) {

    /* Mobiilissa näkyy vain tassulogo. */
    body.my-bookings-page
    #tailwind-site-header
    a[aria-label="Ulvilan Koirametsä"] > div {
        display: none !important;
    }

    /* Varataan logoa varten vain sen tarvitsema leveys. */
    body.my-bookings-page
    #tailwind-site-header
    a[aria-label="Ulvilan Koirametsä"] {
        flex: 0 0 auto !important;
        width: 40px;
        min-width: 40px;
    }

    /* Asiakastiedot logon ja oikean reunan painikkeiden väliin. */
    body.my-bookings-page
    #tailwind-site-header
    .customer-header-inline {
        left: 64px !important;
        right: 76px !important;
        width: auto !important;
        min-width: 0 !important;
        justify-content: flex-end;
    }

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-account {
        width: 100%;
        min-width: 0;
        gap: 8px;
    }

    /* Käyttäjän nimi käyttää kaiken vapaan tilan. */
    body.my-bookings-page
    #tailwind-site-header
    .customer-header-name {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        font-size: clamp(12px, 3.5vw, 17px) !important;
        line-height: 1.15 !important;
    }

    /* Näytetään koko nimi myös puhelimessa. */
    body.my-bookings-page
    #tailwind-site-header
    .customer-header-first {
        display: none !important;
    }

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-full {
        display: block !important;
    }

    /* Uloskirjautumispainike pysyy nimen oikealla puolella. */
    body.my-bookings-page
    #tailwind-site-header
    .customer-header-logout {
        flex: 0 0 auto !important;
    }
}


/* customer-header-mobile-style-v2 */
@media (max-width: 767px) {

    /* Suurempi käyttäjän nimi */
    body.my-bookings-page
    #tailwind-site-header
    .customer-header-name {
        font-size: 20px !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;
        letter-spacing: -0.035em;
    }

    /* Uloskirjautuminen samaan tyyliin kuin luuvalikko */
    body.my-bookings-page
    #tailwind-site-header
    .customer-header-logout button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        border: 2.5px solid #b7ff3c !important;
        border-radius: 9999px !important;
        background: rgba(0, 0, 0, 0.1) !important;
        color: #b7ff3c !important;
        font-size: 25px !important;
        box-shadow: none !important;
        cursor: pointer;
        transition:
            background-color 200ms ease,
            box-shadow 200ms ease;
    }

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-logout button:hover {
        background: rgba(183, 255, 60, 0.1) !important;
        box-shadow: 0 0 18px rgba(183, 255, 60, 0.16) !important;
    }

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-logout button:focus-visible {
        outline: 2px solid #b7ff3c;
        outline-offset: 4px;
    }
}


/* customer-header-alignment-v3 */

/* Kaikissa näkymissä nimi tasataan uloskirjautumiseen. */
body.my-bookings-page
#tailwind-site-header
.customer-header-name {
    text-align: right !important;
}

body.my-bookings-page
#tailwind-site-header
.customer-header-account {
    justify-content: flex-end;
}

/* Tabletti ja mobiili: yhtenäinen pyöreä uloskirjautuminen. */
@media (max-width: 1023px) {

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-logout button {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: 2.5px solid #b7ff3c !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.1) !important;
        color: #b7ff3c !important;
        font-size: 25px !important;
    }
}

/* Tabletti: näytetään koko nimi. */
@media (min-width: 768px) and (max-width: 1023px) {

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-name {
        font-size: 20px !important;
        font-weight: 700 !important;
        max-width: none !important;
    }

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-inline {
        right: 76px;
    }
}

/* Desktop: nimen ja uloskirjautumisen yhtenäinen asettelu. */
@media (min-width: 1024px) {

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-desktop-name {
        max-width: none !important;
        text-align: right !important;
        font-size: 20px !important;
        font-weight: 700 !important;
    }

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-inline {
        display: none !important;
    }
}


/* customer-header-desktop-final-v1 */
@media (min-width: 1024px) {

    /* Piilotetaan kirjautuneen asiakkaan vanhat desktop-toiminnot. */
    body.my-bookings-page
    #tailwind-site-header
    > div > div:has(> a[href*="#varaus"]) {
        display: none !important;
    }

    /* Asiakkaan nimi ja uloskirjautuminen oikealle. */
    body.my-bookings-page
    #tailwind-site-header
    .customer-header-inline {
        display: flex !important;
        position: absolute;
        right: 92px;
        top: 50%;
        transform: translateY(-50%);
        align-items: center;
        min-width: 0;
    }

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-account {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        min-width: 0;
    }

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-first {
        display: none !important;
    }

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-full {
        display: block !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        text-align: right !important;
        font-size: 20px !important;
        font-weight: 700 !important;
    }

    /* Pyöreä uloskirjautumispainike. */
    body.my-bookings-page
    #tailwind-site-header
    .customer-header-logout button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        border: 2.5px solid #b7ff3c !important;
        border-radius: 50% !important;
        background: rgba(0,0,0,.1) !important;
        color: #b7ff3c !important;
        font-size: 25px !important;
    }

    /* Sama luuvalikko kuin mobiilissa ja tabletissa. */
    body.my-bookings-page
    #public-mobile-menu {
        display: block !important;
    }

    body.my-bookings-page
    #public-mobile-menu > div {
        left: auto;
        right: 16px;
        width: 400px;
        max-width: calc(100vw - 32px);
        border-radius: 0 0 16px 16px;
    }
}


@media (min-width: 1024px) {
    body.my-bookings-page
    #tailwind-site-header
    #customer-logout-button {
        display: none !important;
    }

    body.my-bookings-page
    #tailwind-site-header
    .customer-header-desktop-name {
        display: none !important;
    }
}


/* customer-header-controls-polish-v1 */

/* Yhteinen ulkoasu kaikille kirjautuneen asiakkaan header-painikkeille. */
body.my-bookings-page
#tailwind-site-header
.customer-header-booking,
body.my-bookings-page
#tailwind-site-header
.customer-header-logout button,
body.my-bookings-page
#tailwind-site-header
#customer-logout-button,
body.my-bookings-page
#tailwind-site-header
#public-mobile-menu > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    border: 2.5px solid #b7ff3c !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.12) !important;
    background-image: none !important;
    color: #b7ff3c !important;
    box-shadow: none !important;
    cursor: pointer;
    transition:
        transform 220ms cubic-bezier(.2,.8,.2,1),
        background-color 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease !important;
}

/* Uloskirjautumiskuvake pysyy limenvihreänä. */
body.my-bookings-page
#tailwind-site-header
.customer-header-logout button i,
body.my-bookings-page
#tailwind-site-header
#customer-logout-button i {
    color: inherit !important;
    font-size: 25px !important;
    line-height: 1 !important;
}

/* Desktopin tekstillinen uloskirjautuminen pois painikkeesta. */
body.my-bookings-page
#tailwind-site-header
#customer-logout-button > span {
    display: none !important;
}

/* Hover: pehmeä limehehku ja kevyt suurennus. */
@media (hover: hover) and (pointer: fine) {
    body.my-bookings-page
    #tailwind-site-header
    .customer-header-logout button:hover,
    body.my-bookings-page
    #tailwind-site-header
    #customer-logout-button:hover,
    body.my-bookings-page
    #tailwind-site-header
    #public-mobile-menu > summary:hover {
        background: rgba(183, 255, 60, .13) !important;
        color: #d9ff83 !important;
        border-color: #d9ff83 !important;
        box-shadow:
            0 0 0 4px rgba(183,255,60,.07),
            0 0 20px rgba(183,255,60,.22) !important;
        transform: scale(1.06);
    }
}

/* Painallus: pieni fyysinen painike-efekti. */
body.my-bookings-page
#tailwind-site-header
.customer-header-booking:active,
body.my-bookings-page
#tailwind-site-header
.customer-header-logout button:active,
body.my-bookings-page
#tailwind-site-header
#customer-logout-button:active,
body.my-bookings-page
#tailwind-site-header
#public-mobile-menu > summary:active {
    background: rgba(183,255,60,.25) !important;
    transform: scale(.94) !important;
}

/* Valikko auki: aktiivinen tila. */
body.my-bookings-page
#tailwind-site-header
#public-mobile-menu[open] > summary {
    background: #b7ff3c !important;
    color: #052e16 !important;
    box-shadow: 0 0 20px rgba(183,255,60,.28) !important;
}

/* SVG-luukuvake on erillinen kuvatiedosto.
   Suodatin muuttaa sen tummaksi valikon ollessa auki. */
body.my-bookings-page
#tailwind-site-header
#public-mobile-menu[open] > summary img {
    filter: brightness(0) saturate(100%)
        invert(13%) sepia(28%) saturate(1377%)
        hue-rotate(94deg) brightness(91%) contrast(99%);
}

/* Näppäimistöllä käytettäessä selkeä fokus. */
body.my-bookings-page
#tailwind-site-header
.customer-header-booking:focus-visible,
body.my-bookings-page
#tailwind-site-header
.customer-header-logout button:focus-visible,
body.my-bookings-page
#tailwind-site-header
#customer-logout-button:focus-visible,
body.my-bookings-page
#tailwind-site-header
#public-mobile-menu > summary:focus-visible {
    outline: 2px solid #d9ff83 !important;
    outline-offset: 4px !important;
}

/* Liikkeen vähentämisasetuksen kunnioittaminen. */
@media (prefers-reduced-motion: reduce) {
    body.my-bookings-page
    #tailwind-site-header
    .customer-header-logout button,
    body.my-bookings-page
    #tailwind-site-header
    #customer-logout-button,
    body.my-bookings-page
    #tailwind-site-header
    #public-mobile-menu > summary {
        transition: none !important;
        transform: none !important;
    }
}

/* CUSTOMER_HEADER_FLOW_V1: one account row on tablet and desktop. */
@media (min-width: 768px) {
  body.my-bookings-page #tailwind-site-header > div { gap: 16px; }
  body.my-bookings-page #tailwind-site-header > div > div:not(.customer-header-inline) {
    display: none !important;
  }
  body.my-bookings-page #tailwind-site-header .customer-header-inline {
    position: static !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    transform: none !important;
    min-width: 0;
  }
  body.my-bookings-page #tailwind-site-header .customer-header-account {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  body.my-bookings-page #tailwind-site-header .customer-header-first { display: none !important; }
  body.my-bookings-page #tailwind-site-header .customer-header-full {
    display: block !important;
    max-width: 260px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3;
  }
  body.my-bookings-page #tailwind-site-header .customer-header-logout { flex: 0 0 auto; }
  body.my-bookings-page #tailwind-site-header #public-mobile-menu {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 44px;
    margin: 0;
  }
  body.my-bookings-page #tailwind-site-header #public-mobile-menu > div {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
  }
}

/* HEADER_PLUS_AND_BOOKING_SECTION_V1 */
body.my-bookings-page #tailwind-site-header .customer-header-booking { text-decoration: none; flex: 0 0 44px; }
body.my-bookings-page #tailwind-site-header .customer-header-booking i { font-size: 25px; line-height: 1; }
body.my-bookings-page #new-booking-section { scroll-margin-top: 88px; margin-top: 0; }
@media (max-width: 767px) {
 body.my-bookings-page #tailwind-site-header > div { gap: 8px; }
 body.my-bookings-page #tailwind-site-header .customer-header-inline { position: static !important; margin-left: auto !important; margin-right: 0 !important; min-width: 0; transform: none !important; }
 body.my-bookings-page #tailwind-site-header .customer-header-account { gap: 8px; min-width: 0; }
 body.my-bookings-page #tailwind-site-header .customer-header-full { display: none !important; }
 body.my-bookings-page #tailwind-site-header .customer-header-first { display: block !important; min-width: 0; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 body.my-bookings-page #tailwind-site-header #public-mobile-menu { position: relative !important; top: auto !important; right: auto !important; flex: 0 0 44px; }
}
@media (prefers-reduced-motion: reduce) { body.my-bookings-page #tailwind-site-header .customer-header-booking { transition: none !important; transform: none !important; } }

/* Standalone booking card has its own surface and mobile inset. */
body.my-bookings-page #new-booking-section { background: rgba(255,255,255,.95); padding: 24px; }
@media (max-width: 767px) { body.my-bookings-page #new-booking-section { padding: 16px; } }

@media (hover: hover) and (pointer: fine) {
 body.my-bookings-page #tailwind-site-header .customer-header-booking:hover {
  background: rgba(183,255,60,.13) !important;
  color: #d9ff83 !important;
  border-color: #d9ff83 !important;
  box-shadow: 0 0 0 4px rgba(183,255,60,.07), 0 0 20px rgba(183,255,60,.22) !important;
  transform: scale(1.06);
 }
}
body.my-bookings-page #tailwind-site-header .customer-header-booking:active { background: rgba(183,255,60,.25) !important; transform: scale(.94) !important; }
body.my-bookings-page #tailwind-site-header .customer-header-booking:focus-visible { outline: 2px solid #d9ff83 !important; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { body.my-bookings-page #tailwind-site-header .customer-header-booking { transform: none !important; } }

/* CUSTOMER_MOBILE_NAME_TWO_LINES_V1 */
@media (max-width: 767px) {
 body.my-bookings-page #tailwind-site-header .customer-header-first { display: none !important; }
 body.my-bookings-page #tailwind-site-header .customer-header-full {
  display: flex !important; flex-direction: column; justify-content: center;
  height: 44px; min-width: 0; max-width: 92px !important;
  font-size: 14px !important; line-height: 22px !important;
  white-space: nowrap !important; text-align: left !important;
 }
 body.my-bookings-page #tailwind-site-header .customer-header-full > span {
  display: block; width: 100%; overflow: hidden; text-overflow: ellipsis;
  line-height: 22px;
 }
 body.my-bookings-page #tailwind-site-header .customer-header-logout { flex: 0 0 44px; }
 body.my-bookings-page #tailwind-site-header > div > a > img { width: 44px !important; min-width: 44px; max-width: 44px !important; height: 44px !important; }
}

/* CUSTOMER_MENU_DESTINATIONS_V1 */
#upcoming-bookings, #booking-history, #customer-profile, #customer-notifications { scroll-margin-top: 88px; }
body.my-bookings-page #tailwind-site-header .public-mobile-menu-panel { max-height: calc(100dvh - 88px); overflow-y: auto; }

/* CUSTOMER_UNIFIED_SECTION_CARDS_V1 */
body.my-bookings-page main.my-bookings-main { padding-top: 20px !important; }
body.my-bookings-page :is(#upcoming-bookings, #new-booking-section, #customer-profile, #customer-notifications) {
  padding: 20px !important; border-radius: 28px !important; box-sizing: border-box;
}
body.my-bookings-page :is(#upcoming-bookings, #new-booking-section, #customer-profile, #customer-notifications) > details > summary {
  min-height: 110px; padding: 0 !important; gap: 16px !important; align-items: center !important; box-sizing: border-box;
}
body.my-bookings-page .customer-card-heading { min-width: 0; flex: 1; text-align: left; }
body.my-bookings-page .customer-card-title {
  margin: 0 !important; font-size: 20px !important; line-height: 26px !important; font-weight: 700 !important; color: #052e16; letter-spacing: normal; text-transform: none;
}
body.my-bookings-page .customer-card-description {
  margin: 8px 0 0 !important; font-size: 14px !important; line-height: 20px !important; color: #64748b; font-weight: 400;
}
body.my-bookings-page :is(#upcoming-bookings, #new-booking-section, #customer-profile, #customer-notifications) > details > summary > span {
  position: static !important; width: 40px !important; height: 40px !important; min-width: 40px; flex: 0 0 40px; border-radius: 50% !important; margin: 0 !important;
}
