/***** Layout *****/

/** Standard embedded content iframe styling **/

.content-section iframe {
  border: none;
  line-height: 1;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.content-section iframe body {
    /* margin-top: 50px; */
}


/* Login (based on WTW / PCC) */
.modal-backdrop {
    bottom: 0; /* Add to bootstrap params */
    display: none;
}
body.overhidden {
    overflow: hidden;
}
body.loginframeopen .modal-backdrop {
    display: block;
}
.loginiframe  {
    display: none;
    padding: 0 20px;
    height: 100vh;
    width: 100vw;
    left: 0;
    opacity: var(--overlay-opacity);
    position: absolute;
    top: 0;
    z-index: 999999;
}
.login-frame-outer {
    height: 100%;
    width: 100%;
    padding: 0;
    display: grid;
    place-items: center;
}
.Xlogin-frame-outer {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    z-index: 999999;}
/* .contactaccountinfo .wtwlogin-outer{display: none !important;} */
/* ? .loginiframe .wtwlogin{position: fixed;right: 0px;z-index: 999;} */
/* iframe#wtwdetails, iframe#wtwbasket {height: 100vh;} */
.loginiframe iframe#logininneriframe {
    position: relative;
    display: none; /* block; */
    border: 0;
    width: 90%;
    max-width: 800px;
    height: 95%;
    max-height: 800px; 
    overflow: scroll;
    margin: 0 auto;
}
/* .wtw-account .wtwloginiframe iframe#wtwlogin {height: 100vh !important;max-width: 600px;margin: 0 auto;display: block;overflow: hidden;} */

.profile-icon {
    position: relative;
}

/* .header-right { display: flex;align-items: center;gap: 8px; } */
/*
.header-right .header-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; margin-left: 6px;}
.header-right .header-icon svg { width: 100%; height: 100%;  }
.header-right .header-icon svg path { fill: #ccc; stroke: #ccc; stroke-width: 0.5px !important; }
*/

.customer_account_menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 20px; /* parent element height */
    padding: 10px;
    border: 1px solid var(--membership-menu-border-col);
    background-color: var(--membership-menu-bg-col);
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    /* right: 0; */
    left: -20px;
    min-width: 120px;
    z-index: 2;
}
.customer_account_menu span {
    color: var(--membership-menu-item-col);
    transition: all ease-in-out 0.3s;
    text-transform: capitalize;
}
.customer_account_menu span:hover {
    color: var(--membership-menu-item-hover-col);
}
.customer_account_menu span:not(:last-child) {
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--membership-menu-bg-col); /* hide */
}

.profile-icon:hover .customer_account_menu,
.profile-icon:focus .customer_account_menu,
.profile-icon:active .customer_account_menu {
    display: flex;
}


/** Basket **/
a:has(> .basket-cart) {
    position:relative;
}
.basket-cart {
    position: absolute;
    top: -15px;
    right: -40px;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    line-height: 0;
    background-color: var(--header-icon-col);
    color: var(--jacro-global-body-text-color);
}

iframe#jacro-account-basket {
    min-height: 300px;
}

/** Mailing List **/
iframe.mailing-list-iframe {
    border:0px none #000;
}


/***** Colours *****/

:root {
    /* To move to header:*/
    --header-icon-col: var(--jacro-global-off-body-bg-col);

    --membership-menu-border-col: var(--e-global-color-primaryDISABLED, var(--jacro-global-body-text-color));
    --membership-menu-bg-col: var(--e-global-color-secondaryDISABLED, var(--jacro-global-body-background-color));
    --membership-menu-item-col: var(--e-global-color-primaryDISABLED, var(--jacro-global-body-text-color));
    --membership-menu-item-hover-col: var(--jacro-global-body-link-highlight-color);
}

