.bf-corner {
--bf-right: 16px;
--bf-peek: 20px;
position: fixed;
right: var(--bf-right);
bottom: 60px;
z-index: 9000;
width: 350px; max-width: 92vw; transform: translateX(130%);
visibility: hidden;
transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
visibility 0s linear 0.9s;
will-change: transform;
}
.bf-corner.is-visible {
transform: translateX(0);
visibility: visible;
transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
visibility 0s linear 0s;
} .bf-corner.is-peek {
transform: translateX(calc(100% + var(--bf-right) - var(--bf-peek)));
visibility: visible;
transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
visibility 0s linear 0s;
} .bf-corner.is-hidden {
transform: translateX(130%);
} .bf-corner__trigger {
display: block;
width: 100%;
padding: 0;
border: 0;
background: none;
cursor: pointer;
line-height: 0;
border-radius: 4px;
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bf-corner__trigger:hover,
.bf-corner__trigger:focus-visible {
transform: scale(1.04);
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.bf-corner__trigger:focus-visible {
outline: 3px solid #c39;
outline-offset: 3px;
}
.bf-corner__trigger img {
display: block;
width: 100%;
height: auto;
}  .bf-corner__peek {
position: absolute;
top: 0;
bottom: 0;
left: 0;
z-index: 3;
width: var(--bf-peek);
padding: 0;
border: 0;
background: transparent;
cursor: pointer; opacity: 0;
pointer-events: none;
}
.bf-corner.is-peek .bf-corner__peek {
opacity: 1;
pointer-events: auto;
} .bf-corner.is-peek .bf-corner__dismiss {
opacity: 0;
pointer-events: none;
} .bf-corner__dismiss {
position: absolute;
top: -10px;
left: -10px;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
padding: 0;
border: 0;
border-radius: 50%;
background: #fff;
color: #201815;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.bf-corner__dismiss:focus-visible {
outline: 3px solid #c39;
outline-offset: 2px;
} .bf-icon-close {
display: block;
flex: none;
pointer-events: none;
} .bf-modal {
position: fixed;
inset: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 9500;
display: flex;
align-items: center;
justify-content: center;
padding: 20px; overflow: hidden;
}
.bf-modal[hidden] {
display: none;
}
.bf-modal__backdrop {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(20, 18, 16, 0.85);
opacity: 0;
transition: opacity 0.3s ease;
}
.bf-modal.is-open .bf-modal__backdrop {
opacity: 1;
}
.bf-modal__dialog {
position: relative;
z-index: 1;
max-width: 790px;
width: 100%; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
opacity: 0;
transform: translateY(20px) scale(0.97);
transition: opacity 0.3s ease, transform 0.3s ease;
}
.bf-modal.is-open .bf-modal__dialog {
opacity: 1;
transform: translateY(0) scale(1);
} .bf-modal__scroll {
max-height: 88vh;
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}
.bf-modal__link {
display: block;
line-height: 0;
}
.bf-modal__link img {
display: block;
width: 100%;
height: auto;
object-fit: contain;
}
.bf-modal__close {
position: absolute;
top: -14px;
right: -14px;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
padding: 0;
border: 0;
border-radius: 50%;
background: #fff;
color: #201815;
cursor: pointer;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.bf-modal__close:focus-visible {
outline: 3px solid #c39;
outline-offset: 2px;
} body.bf-modal-open {
overflow: hidden;
} @media all and (max-width: 767px) {
.bf-corner__trigger img.bf-mini-mobile-ratio {
height: auto;
aspect-ratio: var(--bf-mini-mobile-ratio, auto);
}
.bf-modal__link img.bf-modal-mobile-ratio {
height: auto;
aspect-ratio: var(--bf-modal-mobile-ratio, auto);
}
} @media all and (max-width: 767px) {
.bf-corner { --bf-right: 12px;
width: 140px;
right: var(--bf-right);
bottom: 60px;
}
.bf-corner__dismiss {
width: 24px;
height: 24px;
}
.bf-modal {
padding: 12px;
} .bf-modal__dialog {
max-width: 100%;
width: auto;
}
.bf-modal__scroll {
max-height: 88vh;
}
.bf-modal__link img {
width: auto;
max-width: 100%;
height: auto;
}
.bf-modal__close { top: 10px;
right: 10px;
width: 30px;
height: 30px;
}
} @media (prefers-reduced-motion: reduce) {
.bf-corner,
.bf-corner__trigger,
.bf-modal__backdrop,
.bf-modal__dialog {
transition: none !important;
}
}