/* =============================================================================
   O2O Cleaning – Site CRO: Trust Bar (homepage) + Mobile Sticky CTA Bar (sitewide)
   ============================================================================= */

/* ---------- Trust Bar ---------- */
#o2o-trust-bar {
    display: none;          /* hidden until JS moves it into position */
    width: 100%;
    background: #f0fdf4;
    border-top: 1px solid #d1fae5;
    border-bottom: 1px solid #d1fae5;
    padding: 9px 16px;
    text-align: center;
    box-sizing: border-box;
}

#o2o-trust-bar.o2o-trust-placed {
    display: block;
}

.o2o-trust-inner {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #166534;
}

.o2o-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.o2o-trust-rating strong {
    font-size: 14.5px;
}

.o2o-star-svg {
    color: #f59e0b;
    flex-shrink: 0;
    margin-right: 1px;
}

.o2o-trust-price strong {
    color: #065f46;
    font-size: 14px;
}

.o2o-trust-dot {
    color: #6ee7b7;
    font-weight: 700;
    user-select: none;
}

/* Hide "schedule" text + its separator on narrow phones */
@media (max-width: 479px) {
    .o2o-trust-schedule,
    .o2o-trust-dot-hide {
        display: none;
    }
}

/* ---------- Mobile Sticky Bottom CTA Bar ---------- */
#o2o-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 10px 16px;
    /* respect iPhone home-bar safe area */
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.10);
    box-sizing: border-box;
}

.o2o-sticky-book {
    flex: 1;
    display: block;
    text-align: center;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    padding: 13px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    transition: background 0.15s;
}

.o2o-sticky-book:hover,
.o2o-sticky-book:active {
    background: #1d4ed8;
}

.o2o-sticky-wa {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #25D366 !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.15s;
}

.o2o-sticky-wa:hover,
.o2o-sticky-wa:active {
    color: #128C7E !important;
}

/* Desktop: hide sticky bar entirely */
@media (min-width: 768px) {
    #o2o-sticky-bar {
        display: none !important;
    }
}

/* Mobile: add bottom padding so sticky bar doesn't cover page content */
@media (max-width: 767px) {
    html body {
        padding-bottom: 76px !important;
    }
}
