:root {
    --ppc-brown: #291607;
    --ppc-orange: #c17a19;
    --ppc-gold: #dfac62;
    --ppc-cream: #f7f5e8;
    --ppc-light-peach: #f2ddc7;
    --ppc-olive: #6b783b;
    --ppc-green: #2e3e16;
}


/* -----------------------------------------
   Page lock
----------------------------------------- */

body.ppc-gate-open {
    overflow: hidden;
}


/* -----------------------------------------
   Gate
----------------------------------------- */

.ppc-access-gate {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.ppc-access-gate.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* -----------------------------------------
   Overlay
----------------------------------------- */

.ppc-access-gate__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}


/* -----------------------------------------
   Modal
----------------------------------------- */

.ppc-access-gate__modal {
    position: relative;
    width: min(850px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;

    background: var(--ppc-cream);

    border: 9px solid var(--ppc-green);

    color: var(--ppc-brown);

    box-sizing: border-box;

    z-index: 2;
}


/* -----------------------------------------
   Close
----------------------------------------- */

.ppc-access-gate__close {
    position: absolute;

    top: 10px;
    right: 14px;

    width: 34px;
    height: 34px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--ppc-green);

    font-size: 30px;
    line-height: 30px;

    cursor: pointer;

    z-index: 5;
}


/* -----------------------------------------
   Layout
----------------------------------------- */

.ppc-access-gate__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;

    min-height: 700px;
}

.ppc-access-gate__form-area {
    padding: 42px 0 34px 48px;
}


/* -----------------------------------------
   Typography
----------------------------------------- */

.ppc-access-gate__eyebrow {
    margin-bottom: 16px;

    color: var(--ppc-green);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.22em;
}

.ppc-access-gate h2 {
    margin: 0 0 12px;

    color: var(--ppc-brown);

    font-size: 42px;
    line-height: 1.15;

    font-weight: 400;
}

.ppc-access-gate__intro {
    margin-bottom: 18px;

    color: var(--ppc-green);

    font-size: 13px;
    font-weight: 600;

    line-height: 1.8;

    letter-spacing: 0.18em;
}


/* -----------------------------------------
   Tabs
----------------------------------------- */

.ppc-access-tabs {
    display: flex;
    gap: 18px;

    margin-bottom: 20px;
}

.ppc-access-tab {
    padding: 8px 22px;

    border: 2px solid var(--ppc-brown);

    background: transparent;

    color: var(--ppc-brown);

    font-size: 16px;

    cursor: pointer;
}

.ppc-access-tab.is-active {
    background: var(--ppc-gold);
}


/* -----------------------------------------
   Panels
----------------------------------------- */

.ppc-access-panel {
    display: none;
}

.ppc-access-panel.is-active {
    display: block;
}


/* -----------------------------------------
   Fields
----------------------------------------- */

.ppc-field {
    margin-bottom: 12px;
}

.ppc-field label {
    display: block;

    margin-bottom: 7px;

    color: var(--ppc-green);

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.18em;
}

.ppc-field input {
    display: block;

    width: 100%;
    height: 40px;

    padding: 5px 10px;

    border: 2px solid var(--ppc-brown);
    border-radius: 0;

    background: transparent;

    color: var(--ppc-brown);

    box-sizing: border-box;

    outline: none;
}

.ppc-field input:focus {
    border-color: var(--ppc-orange);
}


/* -----------------------------------------
   Research notice
----------------------------------------- */

.ppc-research-notice {
    margin-top: 20px;

    font-size: 13px;
    line-height: 1.25;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.ppc-research-notice h3 {
    margin: 0 0 7px;

    color: var(--ppc-green);

    font-size: 18px;
    font-weight: 600;

    letter-spacing: 0.18em;
}

.ppc-research-notice p {
    margin: 0 0 8px;
}

.ppc-research-notice ul {
    margin: 0 0 12px;
    padding-left: 13px;
}


/* -----------------------------------------
   Checkboxes
----------------------------------------- */

.ppc-checkbox {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 8px;

    align-items: start;

    margin-bottom: 10px;

    font-size: 13px;
    line-height: 1.25;

    text-transform: uppercase;

    letter-spacing: 0.09em;
}

.ppc-checkbox input {
    margin: 1px 0 0;
		width: 15px;
    height: 15px;
}


/* -----------------------------------------
   Continue button
----------------------------------------- */

.ppc-continue-button {
    display: inline-block;

    margin-top: 15px;

    padding: 9px 18px;

    border: 2px solid var(--ppc-brown);

    background: var(--ppc-gold);

    color: var(--ppc-brown);

    font-size: 17px;

    cursor: pointer;
}


/* -----------------------------------------
   Forgotten password
----------------------------------------- */

.ppc-forgot-password {
    margin-top: 20px;
}

.ppc-forgot-password a {
    color: var(--ppc-orange);

    font-size: 11px;

    letter-spacing: 0.17em;

    text-decoration: none;
}


/* -----------------------------------------
   WooCommerce errors
----------------------------------------- */

.ppc-access-gate .woocommerce-error,
.ppc-access-gate .woocommerce-message,
.ppc-access-gate .woocommerce-info {
    margin: 0 0 15px;
    padding: 10px 12px;

    font-size: 12px;
}


/* -----------------------------------------
   Decorative artwork area
----------------------------------------- */

.ppc-access-gate__art {
    min-width: 180px;

    background-position:
        center bottom 35px;

    background-repeat: no-repeat;

    background-size: contain;
}


/* -----------------------------------------
   Registration placeholder
----------------------------------------- */

.ppc-coming-next {
    padding: 25px 0;

    font-size: 14px;
}


/* -----------------------------------------
   Responsive
----------------------------------------- */

@media (max-width: 650px) {

    .ppc-access-gate__modal {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);

        border-width: 6px;
    }

    .ppc-access-gate__content {
        display: block;

        min-height: 0;
    }

    .ppc-access-gate__form-area {
        padding: 35px 25px;
    }

    .ppc-access-gate__art {
        display: none;
    }

    .ppc-access-gate h2 {
        font-size: 32px;
    }

    .ppc-access-tabs {
        gap: 10px;
    }

    .ppc-access-tab {
        padding: 8px 14px;

        font-size: 14px;
    }

}