.handbook-promo {
    position: fixed;
    z-index: 90;
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 21rem;
    max-width: calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    border: 1px solid #eadacb;
    border-radius: 0.75rem;
    background: #fff9f0;
    color: #2c3840;
    box-shadow: 0 0.5rem 1.75rem rgba(44, 56, 64, 0.2);
}

.handbook-promo[hidden] {
    display: none;
}

.handbook-promo__link {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem 1rem 1rem;
    border-radius: inherit;
}

.handbook-promo__link,
.handbook-promo__link:hover,
.handbook-promo__link:focus {
    color: inherit;
}

.handbook-promo__link:hover .handbook-promo__copy p {
    text-decoration: underline;
}

.handbook-promo__link:focus-visible {
    outline: 2px solid #9b2c17;
    outline-offset: -3px;
}

.handbook-promo__copy h2,
.handbook-promo__copy p {
    font-family: "termina", sans-serif;
}

.handbook-promo__cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 5.75rem;
    padding: 0.5rem;
    border-left: 3px solid #e33e18;
    border-bottom: 3px solid #e4d2bd;
    border-radius: 0.15rem 0.3rem 0.3rem 0.15rem;
    background: #2c3840;
    color: #fff9f0;
    box-shadow: 0.15rem 0.25rem 0.4rem rgba(44, 56, 64, 0.28);
    transform: rotate(-7deg);
}

.handbook-promo__cover span {
    color: #ffb34d;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.handbook-promo__cover strong {
    font-size: 0.625rem;
    line-height: 1.1;
}

.handbook-promo__line {
    width: 1.2rem;
    border-top: 1px solid currentColor;
}

.handbook-promo__copy h2 {
    margin: 0 0 0.3rem;
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.handbook-promo__copy p {
    margin: 0;
    color: #9b2c17;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
}

.handbook-promo__dismiss {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    color: #2c3840;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.handbook-promo__dismiss:hover {
    background: #f5e7d7;
}

.handbook-promo__dismiss:focus-visible {
    outline: 2px solid #9b2c17;
    outline-offset: -4px;
}
