:root {
    --obcn-pink: #bd365f;
    --obcn-pink-dark: #972746;
    --obcn-blush: #fff4f7;
    --obcn-cream: #fffdf9;
    --obcn-green: #6f8c72;
    --obcn-text: #4b3540;
    --obcn-bar-height: 38px;
}

body.obcn-notice-active {
    padding-top: var(--obcn-bar-height) !important;
}

body.admin-bar.obcn-notice-active {
    padding-top: var(--obcn-bar-height) !important;
}

.obcn-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999998;
    min-height: var(--obcn-bar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--obcn-pink-dark), var(--obcn-pink), var(--obcn-pink-dark));
    color: #fff;
    box-shadow: 0 2px 10px rgba(91, 28, 48, .18);
}

.admin-bar .obcn-top-bar {
    top: 32px;
}

.obcn-top-bar__inner {
    width: min(1180px, calc(100% - 34px));
    padding: 10px 0;
    text-align: center;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: .03em;
}

.obcn-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(45, 25, 35, .58);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.obcn-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.obcn-popup {
    position: relative;
    width: min(540px, 100%);
    overflow: hidden;
    border: 1px solid rgba(189, 54, 95, .2);
    border-radius: 22px;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 219, 229, .9), transparent 29%),
        radial-gradient(circle at 88% 82%, rgba(221, 235, 218, .8), transparent 31%),
        linear-gradient(145deg, var(--obcn-cream), var(--obcn-blush));
    box-shadow: 0 28px 80px rgba(61, 24, 39, .32);
    color: var(--obcn-text);
    transform: translateY(70px) scale(.96);
    opacity: 0;
    transition: transform .48s cubic-bezier(.22,.8,.28,1), opacity .35s ease;
}

.obcn-popup-overlay.is-visible .obcn-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.obcn-popup-overlay.is-closing .obcn-popup {
    transform: translateY(65px) scale(.97);
    opacity: 0;
}

.obcn-popup__content {
    position: relative;
    z-index: 2;
    padding: 64px 58px 54px;
    text-align: center;
}

.obcn-popup__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--obcn-green);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.obcn-popup h2 {
    margin: 0;
    color: var(--obcn-pink-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(34px, 6vw, 48px);
    font-weight: 500;
    line-height: 1.06;
}

.obcn-popup__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 165px;
    margin: 20px auto 22px;
    color: var(--obcn-pink);
}

.obcn-popup__divider::before,
.obcn-popup__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(189, 54, 95, .35);
}

.obcn-popup__divider span {
    font-size: 17px;
    line-height: 1;
}

.obcn-popup p {
    margin: 0 auto;
    max-width: 390px;
    font-family: inherit;
    font-size: 17px;
    line-height: 1.7;
}

.obcn-popup__button {
    margin-top: 28px;
    padding: 11px 30px;
    border: 1px solid var(--obcn-pink);
    border-radius: 999px;
    background: var(--obcn-pink);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.obcn-popup__button:hover,
.obcn-popup__button:focus-visible {
    background: var(--obcn-pink-dark);
    transform: translateY(-1px);
}

.obcn-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 4;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    color: var(--obcn-pink-dark);
    font-size: 30px;
    font-weight: 300;
    line-height: 34px;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(91, 28, 48, .12);
}

.obcn-popup__flower {
    position: absolute;
    width: 180px;
    height: 180px;
    z-index: 1;
    opacity: .95;
    pointer-events: none;
}

.obcn-popup__flower::before,
.obcn-popup__flower::after {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.obcn-popup__flower::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%236f8c72' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M30 176C74 133 89 86 101 28'/%3E%3Cpath d='M73 122c-26-4-40 10-47 30 24 3 39-7 47-30Z' fill='%23dce9da'/%3E%3Cpath d='M91 78c23-5 38 7 46 26-22 5-38-4-46-26Z' fill='%23dce9da'/%3E%3C/g%3E%3Cg fill='%23efb7c8' stroke='%23bd365f' stroke-width='2'%3E%3Cellipse cx='112' cy='42' rx='18' ry='31' transform='rotate(-12 112 42)'/%3E%3Cellipse cx='131' cy='58' rx='18' ry='31' transform='rotate(50 131 58)'/%3E%3Cellipse cx='116' cy='78' rx='18' ry='31' transform='rotate(105 116 78)'/%3E%3Cellipse cx='91' cy='67' rx='18' ry='31' transform='rotate(160 91 67)'/%3E%3Cellipse cx='88' cy='43' rx='18' ry='31' transform='rotate(215 88 43)'/%3E%3Ccircle cx='108' cy='59' r='12' fill='%23f4cf86'/%3E%3C/g%3E%3C/svg%3E");
}

.obcn-popup__flower--top {
    top: -48px;
    left: -52px;
    transform: rotate(-12deg);
}

.obcn-popup__flower--bottom {
    right: -56px;
    bottom: -58px;
    transform: rotate(166deg) scale(.92);
}

@media (max-width: 782px) {
    .admin-bar .obcn-top-bar { top: 46px; }
}

@media (max-width: 600px) {
    :root { --obcn-bar-height: 46px; }

    .obcn-top-bar__inner {
        width: calc(100% - 24px);
        padding: 8px 0;
        font-size: 12px;
    }

    .obcn-popup-overlay { padding: 16px; }
    .obcn-popup { border-radius: 18px; }
    .obcn-popup__content { padding: 58px 28px 44px; }
    .obcn-popup p { font-size: 15px; line-height: 1.65; }
    .obcn-popup__flower { width: 138px; height: 138px; }
}

@media (prefers-reduced-motion: reduce) {
    .obcn-popup-overlay,
    .obcn-popup { transition: none; }
}
