/* Restaurant Info Widget — Style Uber Eats */

.riw-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.riw-hours-row {
    flex: 1;
}

/* ── ADRESSE ── */
.riw-address-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.riw-address-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* Icônes — FA ou SVG, même style */
.riw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #1a1a1a;
}
.riw-icon i   { font-size: inherit; line-height: 1; }
.riw-icon svg { width: 1em; height: 1em; stroke: currentColor; fill: none; }

.riw-address-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
.riw-address-text span {
    display: block;
    font-size: 14px;
    color: #6b6b6b;
    margin-top: 2px;
}

.riw-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px;
    border-radius: 7px;
    color: #1a1a1a;
    transition: background 0.15s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.riw-copy-btn:hover { background: #f3f3f3; }
.riw-copy-btn .riw-icon { margin-top: 0; font-size: 16px; }

/* Tooltip copie */
.riw-copy-tooltip {
    position: fixed;
    background: #1a1a1a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 99999;
    white-space: nowrap;
}
.riw-copy-tooltip.show { opacity: 1; }

/* ── HORAIRES ── */
.riw-hours-row {
    border: none;
}

.riw-hours-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
}
.riw-hours-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.riw-icon-hours { margin-top: 3px; }

.riw-status-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.riw-status-text span {
    display: block;
    font-size: 14px;
    color: #6b6b6b;
    margin-top: 2px;
}
.riw-status-text span.open-label { color: #276ef1; }

/* Chevron animé */
.riw-chevron {
    display: inline-flex;
    align-items: center;
    color: #1a1a1a;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.riw-chevron-svg { width: 20px; height: 20px; display: block; }
.riw-hours-row.expanded .riw-chevron { transform: rotate(180deg); }

/* ── TABLEAU ── */
.riw-hours-table {
    display: none;
    padding: 2px 20px 16px 54px;
}
.riw-hours-row.expanded .riw-hours-table { display: block; }

.riw-day-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}
.riw-day-row:last-child { border-bottom: none; }

.riw-day-name {
    color: #3d3d3d;
    font-weight: 500;
    min-width: 110px;
}
.riw-day-name.today {
    color: #276ef1;
    font-weight: 700;
}
.riw-day-hours { color: #3d3d3d; text-align: right; }
.riw-day-hours.closed { color: #e02020; font-style: italic; }

/* Force suppression bordure colorée */
.riw-hours-row,
.riw-hours-row.is-open,
.riw-hours-row.expanded {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
