/* Modern CSS for Business Engine Plugin */

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 75px !important;
    height: 75px !important;
    padding: 0;
    z-index: 9998;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.5);
}

.whatsapp-float svg {
    width: 60px !important;
    height: 60px !important;
    display: block;
    flex-shrink: 0;
}

/* Front-end Notice Bar */
.notice-bar {
    padding: 10px 5%;
    text-align: center;
    width: 100%;
    z-index: 9999;
    position: relative;
    border-bottom: 1px solid #000000;
}

.has-bizsuite-notice header {
    padding-top: 0 !important;
}

.notice-bar p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Opening Hours Display */
.biz-hours-container {
    background: transparent;
    padding: 0;
    max-width: 400px;
}

.biz-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.biz-hour-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.biz-hour-row:last-child {
    border-bottom: none;
}

.biz-day {
    font-weight: 600;
    color: #333;
}

.biz-time {
    color: #666;
}

.biz-status-notice {
    text-align: center;
    font-weight: 700;
    color: #136544;
    padding: 20px;
    border: 2px dashed #136544;
    border-radius: 8px;
    background: #f0fdf4;
}

/* Admin Toggle Switch */
.biz-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.biz-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.biz-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.biz-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.biz-slider {
    background-color: #136544;
}

input:checked+.biz-slider:before {
    transform: translateX(20px);
}

/* Color Picker Styling */
input[type="color"] {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    cursor: pointer;
    border: 1px solid #000 !important;
}

/* Plugin Toggle Switches */
.biz-ui-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.biz-ui-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.biz-ui-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.biz-ui-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.biz-ui-slider {
    background-color: #136544;
}

input:checked+.biz-ui-slider:before {
    transform: translateX(20px);
}

/* Container styling */
.biz-schedule-container {
    margin-top: 15px;
    font-family: inherit;
}

/* Individual day rows */
.biz-day-row {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

/* Highlight today */
.biz-day-row.is-today {
    background: #f9f9f9;
    font-weight: bold;
}

/* =============================================
   Hero Carousel - Plugin Independent CSS
   ============================================= */
.bizdata-header {
    padding: 0;
    height: 60vh;
    width: 100%;
    text-align: center;
    background: #edeeee;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.bizdata-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #e8e8c8;
}

.bizdata-tagline-container {
    color: white;
    text-align: center;
    padding: 25px 20px;
    border-bottom: 1px solid var(--bb-border);
    margin-top: 20px;
    width: auto;
}

.bizdata-tagline-container p {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.bizdata-header-container h1 {
    color: white;
    border: 5px solid white;
    padding: 40px;
    margin: 0;
    font-size: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-block;
    /* Keeps the border tight around the text */
}

.bizheader-nav-cta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.bizheader-cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fdd31c;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.bizheader-cta-btn:hover {
    background-color: transparent;
    color: #fdd31c;
    border-color: #fdd31c;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.bizdata-carousel-placeholder {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #000;
}

.bizdata-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
    z-index: 1;
}

.bizdata-slide.active {
    display: block;
    z-index: 2;
}

.bizdata-slide.next-up {
    display: block;
    z-index: 3;
}

.bizdata-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 15px;
}

.bizdata-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background-color: #fff;
    border: 2px solid #000;
    box-shadow: 0 0 0 2px #fff;
    transition: all 0.2s ease;
}

.bizdata-dot.active {
    background-color: #000;
    border-color: #fff;
    box-shadow: 0 0 0 2px #000;
    transform: scale(1.2);
}

.bizdata-dot:hover {
    transform: scale(1.2);
}

.bizdata-carousel-nav {
    width: 100%;
    max-width: 1200px;
    background-color: #222222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    position: relative;
    min-height: 60px;
}

.bizdata-nav-cta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.bizdata-nav-cta-btn {
    background-color: #926a08;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.bizdata-nav-cta-btn:hover {
    background-color: #7a5806;
    /* Darker on hover to keep contrast high */
    border-color: #ffffff;
    color: #ffffff;
}

.bizdata-nav-btn {
    background: transparent;
    border: 1px solid #fff;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
}

.bizdata-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.card {
    max-width: 800px;
    padding: 20px;
    border-left: 4px solid #136544;
    margin-bottom: 20px;
}

.carousel-form {
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-label {
    font-weight: bold;
    font-size: 16px;
}

.carousel-duration {
    border-left: 1px solid #ccc;
    padding-left: 15px;
}

.carousel-speed {
    width: 50px;
}

.hero-img-preview {
    width: 100%;
    max-width: 400px;
    height: 200px;
    background: #f0f0f1;
    border: 1px solid #ccd0d4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
}

.carousel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.carousel-internal-pages {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    max-height: 600px;
    overflow-y: auto;
}

.carousel-add-slide {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
}

.carousel-img-preview {
    width: 100%;
    height: 180px;
    background: #f0f0f1;
    border: 1px solid #ccd0d4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    margin-top: 5px;
}

.carousel-limit-reached {
    padding: 40px 20px;
    text-align: center;
    background: #fff1f1;
    border: 2px dashed #d63638;
    color: #d63638;
}

.dashicons-warning {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.carousel-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 10px;
}

.carousel-slide-img {
    width: 120px;
    height: 60px;
    object-fit: cover;
}

.dashicons-menu {
    color: #888;
}

.button.button-link-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    vertical-align: middle;
}

.button.button-link-delete .dashicons {
    margin: 0;
    padding: 0;
    line-height: 1;
    display: block;
    font-size: 18px;
    /* Standardize size */
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .bizdata-header {
        height: 60vh;
        position: relative;
        overflow: visible;
        /* Prevents the bottom button from being cut off */
    }

    .bizdata-carousel-nav {
        position: relative;
        /* Removes it from the absolute flow */
        background-color: #222222;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        min-height: 70px;
        width: 100%;
        box-sizing: border-box;
    }

    .bizdata-nav-cta {
        position: static;
        transform: none;
        order: 2;
    }

    .bizdata-nav-cta-btn {
        padding: 10px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .bizdata-nav-btn {
        position: static;
        order: 1;
    }

    .bizdata-nav-btn:last-child {
        order: 3;
    }

}

/* Social Links styling to match original brand style */
.social-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    margin-right: 10px !important;
    margin-left: 0 !important;
    transition: transform 0.3s ease !important;
    text-decoration: none !important;
}

.social-icon:hover {
    transform: translateY(-5px) !important;
}

.social-icon svg {
    width: 20px !important;
    height: 20px !important;
    fill: #000000 !important;
    display: block;
}