/*
 * Plugin: Rolex Custom Components
 * Author: Rida Labbar
 * Year: 2026
 * File: components\rolex-shop-working-hours\assets\shop-working-hours.css
 */

.rcc-shop-working-hours {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    color: #452c1e;
    width: 100%;
    font-size: 16px;
}

.rcc-shop-working-hours[dir="ltr"] {
    font-family: var(--rcc-font);
}

.rcc-shop-working-hours__toggle {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    background: transparent !important;
    box-shadow: unset !important;
}

.rcc-shop-working-hours__toggle:hover {
    background: transparent !important;
    box-shadow: unset !important;
}

.rcc-shop-working-hours__status {
    color: #212121;
    font-weight: 700;
    text-wrap: nowrap;
    margin-inline-end: 5px;
    font-size: 100%;
    text-transform: capitalize;
}

.rcc-shop-working-hours__status.is-closed {
    color: #452c1e;
}

.rcc-shop-working-hours__time {
    color: #127749;
    font-weight: 500;
    text-align: left;
    text-wrap: balance;
    margin-inline-end: 5px;
    text-transform: none;
}

.rcc-shop-working-hours__caret {
    display: inline-flex;
    align-items: center;
    transition: transform 0.45s ease;
}

.rcc-shop-working-hours__caret svg {
    fill: #127749;
}

.rcc-shop-working-hours.is-open .rcc-shop-working-hours__caret {
    transform: rotate(180deg);
}

.rcc-shop-working-hours__panel-wrap {
    position: absolute;
    top: 25px;
    z-index: 10;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    transform: translateY(-6px);
    transition: max-height 0.7s ease, transform 0.7s ease;
    pointer-events: none;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
}

.rcc-shop-working-hours.is-open .rcc-shop-working-hours__panel-wrap {
    max-height: 500px;
    transform: translateY(10px);
    pointer-events: auto;
}

.rcc-shop-working-hours.is-closing .rcc-shop-working-hours__panel-wrap {
    max-height: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.rcc-shop-working-hours__panel {
    height: fit-content;
    padding: 40px 50px;
    filter: none;
    box-shadow: none;
    background-color: #f9f7f4;
    overflow: hidden;
    row-gap: 1rem;
    flex-direction: column;
    width: 100%;
    display: flex;
    margin-top: 10px;
    margin-inline-start: auto;
    margin-inline-end: auto;
    color: black;
}

.rcc-shop-working-hours__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: 0.08s;
}

.rcc-shop-working-hours.is-open .rcc-shop-working-hours__row {
    opacity: 1;
    transform: translateY(0);
}

.rcc-shop-working-hours.is-open .rcc-shop-working-hours__row:nth-child(1) {
    transition-delay: 0.12s;
}

.rcc-shop-working-hours.is-open .rcc-shop-working-hours__row:nth-child(2) {
    transition-delay: 0.18s;
}

.rcc-shop-working-hours.is-open .rcc-shop-working-hours__row:nth-child(3) {
    transition-delay: 0.24s;
}

.rcc-shop-working-hours.is-open .rcc-shop-working-hours__row:nth-child(4) {
    transition-delay: 0.3s;
}

.rcc-shop-working-hours.is-open .rcc-shop-working-hours__row:nth-child(5) {
    transition-delay: 0.36s;
}

.rcc-shop-working-hours.is-open .rcc-shop-working-hours__row:nth-child(6) {
    transition-delay: 0.42s;
}

.rcc-shop-working-hours.is-open .rcc-shop-working-hours__row:nth-child(7) {
    transition-delay: 0.48s;
}

.rcc-shop-working-hours.is-closing .rcc-shop-working-hours__row {
    transition-delay: 0s;
}

.rcc-shop-working-hours__day {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rcc-shop-working-hours__row.is-today .rcc-shop-working-hours__day {
    color: #127749;
}

.rcc-shop-working-hours__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #127749;
    display: inline-block;
}

.rcc-shop-working-hours__row-time {
    color: black;
}

.rcc-shop-working-hours__row.is-today .rcc-shop-working-hours__row-time {
    color: #127749;
    font-weight: 600;
}

.rcc-shop-working-hours__row-time.is-closed {
    color: #452c1e;
}

/* Mobile (<= 767px) */
@media (max-width: 767px) {
    .rcc-shop-working-hours {
        font-size: 14px;
    }

    .rcc-shop-working-hours__panel {
        padding: 24px 20px;
    }
}

/* Tablet (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .rcc-shop-working-hours {
        font-size: 14px;
    }

    .rcc-shop-working-hours__panel {
        padding: 25px;
    }
}
