/* ==========================================================================

   Yoo Notification - builder presets (Gutenberg + Elementor + admin thumbs)
   All selectors are kept at low specificity (:where) so anything the user sets
   in the Gutenberg / Elementor editor overrides them.
   ========================================================================== */

/* ---- Wrapper that the frontend / preview puts around builder content ---- */
.yb-builder-bar .yb-preview-render { position: relative; }

.yb-builder-bar .yb-builder-inner { display: block; padding: 0; margin: 0; width: 100%; max-width: none; }

.yb-builder-bar .yb_notification-close { z-index: 5; line-height: 0; }

.yb-th-p1 .yb_notification-close { color: #fff; fill: #fff; }

.yb-th-p2 .yb_notification-close { color: #fff; fill: #fff; }

.yb-th-p3 .yb_notification-close { color: #f0654f; fill: #f0654f; opacity: .8; }

.yb-th-p4 .yb_notification-close { color: #1f1b0c; fill: #1f1b0c; }

.yb-th-p5 .yb_notification-close { color: #17142a; fill: #17142a; }

/* ---- Base layout ---- */

:where(.yb-bx) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 32px;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 56px 12px 24px;
    text-align: left;
    line-height: 1.35;
}

:where(.yb-bx) > :where(*) { margin: 0; max-width: none; }

:where(.yb-bx) :where(p) { margin: 0; padding: 0; max-width: none; }

:where(.yb-bx .yb-bx-timer) { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; margin: 0; padding: 0; width: auto; }

:where(.yb-bx .yb-bx-label) { white-space: nowrap; font-weight: 500; margin: 0; }

:where(.yb-bx .yb-bx-cd) { margin: 0; width: auto; }

:where(.yb-bx .yb-bx-text), :where(.yb-bx .yb-bx-text .elementor-heading-title) { margin: 0; font-weight: 400; }

:where(.yb-bx .yb-bx-text strong) { font-weight: 700; }

:where(.yb-bx .yb-bx-btns) { display: flex; margin: 0; padding: 0; gap: 0; width: auto; }

:where(.yb-bx .yb-bx-btn) { margin: 0; }

:where(.yb-bx .yb-bx-btn a),
:where(.yb-bx .yb-bx-btn .elementor-button),
:where(.yb-bx .yb-bx-btn .wp-block-button__link) {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 28px; font-weight: 700; font-size: 16px; line-height: 1.2;
    text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
    transition: filter .15s ease, transform .15s ease;
}

:where(.yb-bx .yb-bx-btn a:hover),
:where(.yb-bx .yb-bx-btn .wp-block-button__link:hover) { filter: brightness(1.08); }

/* Countdown (markup shared with the classic bar) */

:where(.yb-bx .yb-timer-blocks) { display: inline-flex; align-items: center; gap: 10px; }

:where(.yb-bx .yb-timer-blocks span) {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 48px; padding: 6px 8px; border-radius: 4px; line-height: 1.1; text-align: center;
}

:where(.yb-bx .yb-timer-blocks strong) { font-size: 20px; font-weight: 600; }

:where(.yb-bx .yb-timer-blocks small) { font-size: 11px; margin-top: 3px; font-weight: 400; }

/* ---- default : Default Pink (the bar every new bar starts with) ---- */
.yb-bx-default { background: #e91e63; color: #fff; font-size: 13px; }
.yb-bx-default :where(.yb-bx-text), .yb-bx-default :where(.yb-bx-text .elementor-heading-title) { color: #fff; font-size: 16px; }
.yb-bx-default :where(.yb-bx-btn a), .yb-bx-default :where(.yb-bx-btn .wp-block-button__link), .yb-bx-default :where(.yb-bx-btn .elementor-button) { background: #e53434; color: #fff; border-radius: 5px; padding: 9px 22px; font-size: 14px; }

/* ---- p1 : Dark Purple Countdown ---- */
.yb-bx-p1 { background: #43455f; color: #fff; font-size: 16px; }
.yb-bx-p1 :where(.yb-bx-label), .yb-bx-p1 :where(.yb-bx-label .elementor-heading-title) { color: #fff; font-size: 15px; }
.yb-bx-p1 :where(.yb-timer-blocks) { gap: 8px; }
.yb-bx-p1 :where(.yb-timer-blocks) span { background: #6c4cf5; color: #fff; min-width: 52px; border-radius: 3px; padding: 6px 6px; }
.yb-bx-p1 :where(.yb-timer-blocks) strong { font-size: 16px; font-weight: 600; }
.yb-bx-p1 :where(.yb-timer-blocks) small { font-size: 11px; }
.yb-bx-p1 :where(.yb-bx-text), .yb-bx-p1 :where(.yb-bx-text .elementor-heading-title) { color: #fff; font-size: 16px; }
.yb-bx-p1 :where(.yb-bx-btn a), .yb-bx-p1 :where(.yb-bx-btn .wp-block-button__link), .yb-bx-p1 :where(.yb-bx-btn .elementor-button) { background: #6c4cf5; color: #fff; border-radius: 3px; padding: 11px 34px; }

/* ---- p2 : Flash Blue ---- */
.yb-bx-p2 { background: linear-gradient(90deg, #1b66ff 0%, #3f8dff 100%); color: #fff; font-size: 18px; }
.yb-bx-p2 :where(.yb-bx-label), .yb-bx-p2 :where(.yb-bx-label .elementor-heading-title) { color: #fff; font-size: 20px; font-weight: 500; }
.yb-bx-p2 :where(.yb-timer-blocks) { gap: 8px; }
.yb-bx-p2 :where(.yb-timer-blocks) span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.55); color: #fff; min-width: 54px; padding: 5px 6px; border-radius: 3px; }
.yb-bx-p2 :where(.yb-timer-blocks) strong { font-size: 20px; font-weight: 500; }
.yb-bx-p2 :where(.yb-timer-blocks) small { font-size: 12px; }
.yb-bx-p2 :where(.yb-bx-text), .yb-bx-p2 :where(.yb-bx-text .elementor-heading-title) { color: #e8f1ff; font-size: 20px; }
.yb-bx-p2 :where(.yb-bx-text strong) { color: #fff; font-size: 22px; }
.yb-bx-p2 :where(.yb-bx-btn a), .yb-bx-p2 :where(.yb-bx-btn .wp-block-button__link), .yb-bx-p2 :where(.yb-bx-btn .elementor-button) { background: #1552e8; color: #fff; border-radius: 999px; padding: 12px 28px; font-size: 18px; }

/* ---- p3 : Pink Celebration ---- */
.yb-bx-p3 { background: linear-gradient(90deg, #ffe9e2 0%, #ffd3ca 100%); color: #23202a; font-size: 18px; }
.yb-bx-p3 :where(.yb-bx-label), .yb-bx-p3 :where(.yb-bx-label .elementor-heading-title) { color: #23202a; font-size: 18px; font-weight: 500; }
.yb-bx-p3 :where(.yb-timer-blocks) {
    gap: 14px; padding: 6px 12px; border: 1px solid #e7867c; border-radius: 3px;
    background-color: rgba(255,255,255,.35);
    background-image: linear-gradient(rgba(231,134,124,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(231,134,124,.18) 1px, transparent 1px);
    background-size: 12px 12px;
}
.yb-bx-p3 :where(.yb-timer-blocks) span { background: transparent; color: #e8392f; min-width: 44px; padding: 0; }
.yb-bx-p3 :where(.yb-timer-blocks) strong { font-size: 24px; font-weight: 600; }
.yb-bx-p3 :where(.yb-timer-blocks) small { color: #3a3340; font-size: 13px; }
.yb-bx-p3 :where(.yb-bx-text), .yb-bx-p3 :where(.yb-bx-text .elementor-heading-title) { color: #23202a; font-size: 20px; }
.yb-bx-p3 :where(.yb-bx-text strong) { color: #e8392f; font-size: 28px; font-weight: 600; }
.yb-bx-p3 :where(.yb-bx-btn a), .yb-bx-p3 :where(.yb-bx-btn .wp-block-button__link), .yb-bx-p3 :where(.yb-bx-btn .elementor-button) { background: #fff; color: #23202a; border-radius: 8px; padding: 13px 26px; box-shadow: 0 4px 14px rgba(190,90,80,.15); }

/* ---- p4 : Cream Shop (no countdown, bag icon) ---- */
.yb-bx-p4 { background: #f4f1e8; color: #33280a; font-size: 18px; }
.yb-bx-p4 :where(.yb-bx-text), .yb-bx-p4 :where(.yb-bx-text .elementor-heading-title) { color: #33280a; font-size: 20px; }
.yb-bx-p4 :where(.yb-bx-text strong) { color: #a8820c; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; }
.yb-bx-p4 :where(.yb-bx-btn a), .yb-bx-p4 :where(.yb-bx-btn .wp-block-button__link), .yb-bx-p4 :where(.yb-bx-btn .elementor-button) { background: #e4dcc3; color: #2b2208; border-radius: 3px; padding: 14px 24px; font-size: 18px; font-weight: 500; }

/* ---- p5 : Aqua Gradient ---- */
.yb-bx-p5 { background: linear-gradient(90deg, #9ef3f1 0%, #e3d3ff 100%); color: #17142a; font-size: 18px; }
.yb-bx-p5 :where(.yb-bx-label), .yb-bx-p5 :where(.yb-bx-label .elementor-heading-title) { color: #17142a; }
.yb-bx-p5 :where(.yb-timer-blocks) { gap: 14px; padding: 6px 10px; border-radius: 4px; background: rgba(255,255,255,.4); }
.yb-bx-p5 :where(.yb-timer-blocks) span { background: transparent; color: #17142a; min-width: 44px; padding: 0; }
.yb-bx-p5 :where(.yb-timer-blocks) strong { font-size: 24px; font-weight: 600; }
.yb-bx-p5 :where(.yb-timer-blocks) small { font-size: 13px; }
.yb-bx-p5 :where(.yb-bx-text), .yb-bx-p5 :where(.yb-bx-text .elementor-heading-title) { color: #17142a; font-size: 20px; }
.yb-bx-p5 :where(.yb-bx-text strong) { font-weight: 700; }
.yb-bx-p5 :where(.yb-bx-btn a), .yb-bx-p5 :where(.yb-bx-btn .wp-block-button__link), .yb-bx-p5 :where(.yb-bx-btn .elementor-button) { background: #2a0f3a; color: #fff; border-radius: 999px; padding: 13px 28px; font-size: 18px; }

/* Bag icon before the button label */
.yb-bx--bag.yb-bx-p4 :where(.yb-bx-btn a)::before, .yb-bx--bag.yb-bx-p4 :where(.yb-bx-btn .wp-block-button__link)::before, .yb-bx--bag.yb-bx-p4 :where(.yb-bx-btn .elementor-button-text)::before {
    content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b2208'><path d='M7 8V7a5 5 0 0 1 10 0v1h3l1 14H3L4 8h3zm2 0h6V7a3 3 0 0 0-6 0v1zm-2 2H5.9L5.1 20h13.8l-.8-10H17v2h-2v-2H9v2H7v-2z'/></svg>") center / contain no-repeat;
}
.yb-bx--bag.yb-bx-p5 :where(.yb-bx-btn a)::before, .yb-bx--bag.yb-bx-p5 :where(.yb-bx-btn .wp-block-button__link)::before, .yb-bx--bag.yb-bx-p5 :where(.yb-bx-btn .elementor-button-text)::before {
    content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><path d='M7 8V7a5 5 0 0 1 10 0v1h3l1 14H3L4 8h3zm2 0h6V7a3 3 0 0 0-6 0v1zm-2 2H5.9L5.1 20h13.8l-.8-10H17v2h-2v-2H9v2H7v-2z'/></svg>") center / contain no-repeat;
}

/* ---- Responsive: ONE row on every screen (no stacking). The row is scaled down
   to the screen width by yoobar-fit.js; tablet / mobile drop the "Ending in" label. ---- */
:where(.yb-bx) { flex-wrap: nowrap; white-space: nowrap; }
:where(.yb-bx .yb-bx-text) { white-space: nowrap; }
@media (max-width: 991px) {
    :where(.yb-bx) { gap: 10px 14px; padding: 10px 30px 10px 12px; }
    :where(.yb-bx .yb-bx-label) { display: none; }
}
