:root {
    --calaser-ivory: #f7f1e7;
    --calaser-cream: #f8f3eb;
    --calaser-gold: #98712f;
    --calaser-gold-soft: #c3a05e;
    --calaser-button: #ddb861;
    --calaser-ink: #171512;
    --calaser-taupe: #665e54;
    --calaser-font-heading: "Antic Didone", serif;
    --calaser-font-body: "PT Sans", sans-serif;
}

.calaser-relocation-root,
.calaser-relocation-root * {
    box-sizing: border-box;
}

.calaser-relocation-root [hidden] {
    display: none !important;
}

body.calaser-relocation-lock {
    overflow: hidden;
}

body.calaser-relocation-has-ribbon {
    padding-top: 38px;
}

body.calaser-relocation-has-ribbon header.wp-block-template-part.headroom {
    top: 38px !important;
}

body.admin-bar.calaser-relocation-has-ribbon header.wp-block-template-part.headroom {
    top: 70px !important;
}

.calaser-relocation-ribbon {
    position: fixed;
    z-index: 99997;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 0;
    border-bottom: 0;
    outline: 0;
    padding: 8px 28px;
    background: var(--calaser-ribbon, #f4ebdd);
    color: #554a3e;
    font: 400 14px/1.35 var(--calaser-font-body);
    cursor: pointer;
    box-shadow: none;
}

.calaser-relocation-ribbon:focus,
.calaser-relocation-ribbon:focus-visible {
    border: 0;
    outline: 0;
    box-shadow: none;
}

body.admin-bar .calaser-relocation-ribbon {
    top: 32px;
}

.calaser-relocation-ribbon__copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calaser-relocation-ribbon__title {
    font-weight: 500;
}

.calaser-relocation-ribbon__separator {
    color: var(--calaser-gold);
}

.calaser-relocation-ribbon__more {
    display: none;
}

.calaser-relocation-ribbon__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--calaser-gold);
}

.calaser-relocation-notice {
    position: fixed;
    z-index: 99998;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px 0 0;
    background: rgba(17, 15, 12, 0.55);
    opacity: 0;
    transition: opacity 180ms ease;
}

.calaser-relocation-notice.is-visible {
    opacity: 1;
}

.calaser-relocation-dialog {
    position: relative;
    width: 100%;
    max-height: min(88vh, 760px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 22px 22px 0 0;
    padding: 50px 28px calc(28px + env(safe-area-inset-bottom));
    background: var(--calaser-cream);
    color: var(--calaser-ink);
    box-shadow: 0 -18px 50px rgba(23, 21, 18, 0.18);
    text-align: center;
    transform: translateY(28px);
    transition: transform 220ms ease;
    outline: 0;
}

.calaser-relocation-notice.is-visible .calaser-relocation-dialog {
    transform: translateY(0);
}

.calaser-relocation-dialog::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: #d8d2c8;
    transform: translateX(-50%);
}

.calaser-relocation-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--calaser-ink);
    cursor: pointer;
}

.calaser-relocation-close:hover,
.calaser-relocation-close:focus-visible {
    background: rgba(152, 113, 47, 0.1);
    outline: 2px solid var(--calaser-gold);
    outline-offset: 2px;
}

.calaser-relocation-close svg {
    width: 24px;
    height: 24px;
}

.calaser-relocation-title {
    max-width: 680px;
    margin: 0 auto 18px;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    font-family: var(--calaser-font-heading);
    font-size: clamp(30px, 9vw, 46px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.calaser-relocation-body,
.calaser-relocation-date,
.calaser-relocation-address,
.calaser-relocation-unaffected,
.calaser-relocation-english {
    margin-right: auto;
    margin-left: auto;
}

.calaser-relocation-body {
    max-width: 620px;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    color: var(--calaser-taupe);
    font: 400 16px/1.5 var(--calaser-font-body);
}

.calaser-relocation-date {
    max-width: 620px;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    color: var(--calaser-ink);
    font: 500 15px/1.4 var(--calaser-font-body);
}

.calaser-relocation-address {
    max-width: 620px;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    color: var(--calaser-gold);
    font: 600 clamp(17px, 4.8vw, 20px)/1.35 var(--calaser-font-body);
}

.calaser-relocation-address::after {
    content: '';
    display: block;
    width: 54px;
    height: 1px;
    margin: 18px auto 0;
    background: var(--calaser-gold);
    opacity: 0.72;
}

.calaser-relocation-unaffected {
    max-width: 620px;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    color: var(--calaser-taupe);
    font: 400 15px/1.5 var(--calaser-font-body);
}

.calaser-relocation-english {
    max-width: 620px;
    margin-top: -4px !important;
    margin-bottom: 20px !important;
    padding-top: 16px;
    border-top: 1px solid #e7ded0;
    color: #7d746b;
    font: 400 13px/1.45 var(--calaser-font-body);
}

.calaser-relocation-button {
    width: 100%;
    max-width: 620px;
    min-height: 50px;
    margin: 0 auto;
    border: 1px solid var(--calaser-button);
    border-radius: 2px;
    padding: 13px 20px;
    background: var(--calaser-button);
    color: #111;
    font: 600 15px/1.2 var(--calaser-font-body);
    cursor: pointer;
}

.calaser-relocation-button:hover,
.calaser-relocation-button:focus-visible {
    background: #c9a44f;
    outline: 2px solid #171512;
    outline-offset: 3px;
}

@media (min-width: 900px) {
    .calaser-relocation-ribbon__copy {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .calaser-relocation-ribbon__icon {
        position: absolute;
        right: 28px;
    }

    .calaser-relocation-notice {
        align-items: flex-end;
        justify-content: flex-end;
        padding: 28px;
        background: transparent;
        pointer-events: none;
    }

    .calaser-relocation-dialog {
        width: min(430px, calc(100vw - 56px));
        max-height: calc(100vh - 56px);
        border: 1px solid rgba(255, 255, 255, 0.95);
        border-radius: 4px;
        padding: 60px 34px 30px;
        box-shadow: 0 20px 55px rgba(23, 21, 18, 0.22);
        text-align: left;
        transform: translateY(16px);
        pointer-events: auto;
    }

    .calaser-relocation-root.is-bottom-left .calaser-relocation-notice {
        justify-content: flex-start;
    }

    .calaser-relocation-dialog::before {
        display: none;
    }

    .calaser-relocation-title,
    .calaser-relocation-body,
    .calaser-relocation-date,
    .calaser-relocation-address,
    .calaser-relocation-unaffected,
    .calaser-relocation-english {
        margin-left: 0;
    }

    .calaser-relocation-title {
        margin-right: 0;
        font-size: 34px;
        line-height: 1.08;
    }

    .calaser-relocation-address {
        font-size: 18px;
    }

    .calaser-relocation-address::after {
        margin-left: 0;
    }

    .calaser-relocation-button {
        max-width: none;
    }
}

@media (max-width: 899px) {
    body.calaser-relocation-has-ribbon {
        padding-top: 40px;
    }

    body.calaser-relocation-has-ribbon header.wp-block-template-part.headroom {
        top: 40px !important;
    }

    .calaser-relocation-ribbon {
        justify-content: center;
        gap: 3px;
        min-height: 40px;
        padding: 7px 8px;
        border-bottom: 0;
        color: #4f463c;
        font-size: clamp(10.5px, 2.85vw, 11.5px);
        line-height: 1.2;
        text-align: center;
    }

    .calaser-relocation-ribbon__copy {
        min-width: 0;
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        transform: none;
    }

    .calaser-relocation-ribbon__title,
    .calaser-relocation-ribbon__detail {
        display: inline;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .calaser-relocation-ribbon__title {
        flex: 0 0 auto;
        font-size: clamp(10.5px, 2.85vw, 11.5px);
        font-weight: 500;
    }

    .calaser-relocation-ribbon__detail {
        min-width: 0;
        color: #74685c;
        font-size: clamp(10.5px, 2.85vw, 11.5px);
    }

    .calaser-relocation-ribbon__more {
        display: none;
    }

    .calaser-relocation-ribbon__separator {
        display: inline;
        flex: 0 0 auto;
    }

    .calaser-relocation-ribbon__icon {
        position: static;
        width: 13px;
        height: 13px;
        margin-left: 1px;
    }
}

@media (max-width: 370px) {
    .calaser-relocation-ribbon {
        gap: 3px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .calaser-relocation-ribbon__copy {
        gap: 3px;
    }

    .calaser-relocation-ribbon__title,
    .calaser-relocation-ribbon__detail {
        font-size: 11.5px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .calaser-relocation-ribbon {
        top: 46px;
    }

    body.admin-bar.calaser-relocation-has-ribbon header.wp-block-template-part.headroom {
        top: 86px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .calaser-relocation-notice,
    .calaser-relocation-dialog {
        transition: none;
    }
}
