@font-face {
    font-family: 'Epoch Magento Hebrew';
    src: url('noto-hebrew-regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Epoch Magento Hebrew';
    src: url('noto-hebrew-medium.woff') format('woff');
    font-weight: 600;
    font-display: swap;
}
/* Match Abra/Epoch's Amasty Google button, scoped to this plugin. */
.epoch-google-login { width: 100%; margin: 0 0 24px; }
.epoch-google-control {
    position: relative;
    width: 100%;
    height: 50px;
    overflow: hidden;
    border: 1px solid #000;
    border-radius: 3px;
    box-sizing: border-box;
    background: transparent;
}
.epoch-google-face {
    position: absolute;
    inset: 0;
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
    color: #000;
    font-family: 'Epoch Magento Hebrew', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
}
.epoch-google-face img { width: 22px; height: 22px; margin: 0; flex: 0 0 22px; }
.epoch-google-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 40px;
    opacity: 0.001;
    transform-origin: top left;
}
.epoch-google-control:focus-within { outline: 2px solid #4285f4; outline-offset: 3px; }
.epoch-google-status { text-align: center; color: #c00; font-size: 14px; }
.epoch-google-status:empty { display: none; }
/* Keep theme-wide span typography from replacing the Magento font. */
.popup-wrapper .epoch-google-login .epoch-google-face span {
    font-family: 'Epoch Magento Hebrew', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
}
.epoch-google-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    color: #757575;
}
.popup-wrapper .epoch-google-login .epoch-google-divider span {
    font-family: 'Epoch Magento Hebrew', sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 32px;
}
.epoch-google-divider::before,
.epoch-google-divider::after {
    content: '';
    width: 12%;
    height: 1px;
    background: #757575;
}

/* A validation target replaces the Google iframe until this form has consent. */
.popup-wrapper .epoch-google-login .epoch-google-consent-guard {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    z-index: 2;
}
.epoch-google-login .epoch-google-consent-guard[hidden] { display: none !important; }

/* Block mouse and keyboard access without collapsing Google's layout. */
.epoch-google-login .epoch-google-button.epoch-google-blocked {
    pointer-events: none;
}


/* Isolate the hit target from theme iframe/RTL rules and keep its stacking stable. */
.epoch-google-login .epoch-google-control {
    isolation: isolate;
    max-width: none;
    min-height: 50px;
}
.epoch-google-login .epoch-google-face { z-index: 0; }
.epoch-google-login .epoch-google-button {
    z-index: 1;
    display: block;
    direction: ltr;
    text-align: left;
    line-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    min-width: 400px;
    max-width: none;
    transform-origin: 0 0;
}
.epoch-google-login .epoch-google-button iframe {
    max-width: none !important;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
