﻿/* ADO Story #1238455: Shared responsive header and footer styles
   Used by PDP (UpdateableBookDetail.ascx) and Cart (Edit.aspx) pages.
   - Header: Hamburger menu, search icon, country bar, responsive cart icon
   - Footer: Dark accordion footer with collapsible sections
   - Desktop view (>768px) is not affected */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body {
        touch-action: pan-y;
        position: relative;
    }
    /* --- Responsive Footer --- */
    #footer-2015 {
        display: none;
    }

    .tr-SemanticFooter {
        display: none;
    }

    .pdp-responsive-footer {
        display: block !important;
        background: #222;
        color: #fff;
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .pdp-footer-accordion {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .pdp-footer-title {
        width: 100%;
        background: #1F1F1F;
        color: #FFFFFF;
        font-weight: 500;
        font-size: 16px;
        padding: 18px 20px;
        border-bottom: 1px solid #404040;
        outline: none;
        cursor: pointer;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .pdp-footer-caret {
        margin-left: auto;
        transition: transform 0.2s;
    }

    .pdp-footer-section.open .pdp-footer-caret {
        transform: rotate(180deg);
    }

    .pdp-footer-list {
        display: none;
        flex-direction: column;
        background: #1F1F1F;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .pdp-footer-section.open .pdp-footer-list {
        display: flex;
    }

    .pdp-footer-list li {
        border-bottom: 1px solid #404040;
        width: 320px;
    }

    .pdp-footer-list a {
        display: block;
        color: #FFFFFF;
        text-decoration: none;
        padding-top: 22px;
        padding-bottom: 22px;
        padding-right: 20px;
        padding-left: 36px;
        font-size: 1rem;
        background: none;
        border: none;
        transition: background 0.2s, color 0.2s;
    }

    .pdp-footer-list a:focus {
        text-decoration: underline;
        color: #FFFFFF !important;
    }

    .pdp-footer-logo {
        font-weight: 500;
        font-size: 16px;
        text-transform: none;
    }

    /* --- Responsive Header (hamburger) --- */
    .tr-GlobalHeader-resposnive nav {
        width: 100%;
    }

    .tr-GlobalHeaderItem .dropdown-menu,
    .tr-GlobalHeaderBaseItem-linkChevron,
    #top-nav-create-account,
    #shoppingcart-panelid {
        display: none !important;
    }

    .tr-GlobalHeader-responsive {
        height: 36px !important;
    }

    .tr-GlobalHeader-inner-responsive {
        display: flex !important;
        align-items: center !important;
        padding-left: 1.125rem !important;
        padding-right: 1.125rem !important;
        width: 100% !important;
    }

    .tr-GlobalHeader-rightItems {
        margin-left: auto;
    }

    .tr-GlobalHeaderItem.create-account .create-account-icon-responsive {
        display: none !important;
    }

    .tr-SiteHeader-menus .tr-SiteHeader-menus-responsive {
        display: none !important;
    }

    .tr-australia-header-responsive {
        display: none !important;
    }

    li.tr-SiteHeaderMenu {
        display: flex;
        align-items: center;
    }

    li.tr-SiteHeaderMenu svg#hamburger-icon,
    li.tr-SiteHeaderMenu svg#search-icon {
        display: block;
    }

    .tr-SiteHeader-buttons {
        display: none !important;
    }

    .shoppingcart .item-number {
        display: none !important;
    }

    span.item-number-responsive {
        background-size: .9rem;
        color: #4d4d4d;
        display: flex !important;
    }

    span.item-number-responsive img {
        width: 0.9rem;
        margin-top: 0.42rem;
    }

    span.item-number-responsive span {
        margin-top: 0.32rem;
    }

    .country-header {
        display: block !important;
        width: 100%;
        height: 37.59px;
        padding: 8px 16px 8px 16px;
        gap: 10px;
        background: #F4F4F4;
        align-content: center;
    }

    .country-header div {
        font-family: Knowledge2017;
        font-size: 12px;
        font-weight: 500;
        line-height: 12px;
        letter-spacing: 2px;
        color: #404040;
    }
}
