/* Allow widget to shrink on mobile */
.peanut-mini-widget,
.peanut-mini-widget-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
/* ============================================================
   GLOBAL WIDGET STYLING
   ============================================================ */

.widget-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #333;
}

h2, h3 {
    color: #1a3d6d;
    margin-top: 0;
    margin-bottom: 10px;
}

.station {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

/* ============================================================
   MAIN CONDITIONS (Water, Air, Wind)
   ============================================================ */

.conditions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 25px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.conditions div {
    flex: 1 1 250px;
}

/* ============================================================
   INLINE EXTRA CONDITIONS
   ============================================================ */

.conditions-extra-inline {
    margin-top: 12px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

.conditions-extra-inline strong {
    font-weight: 600;
}

@media (max-width: 600px) {
    .conditions-extra-inline {
        font-size: 0.88rem;
        white-space: normal;
        line-height: 1.4;
    }
}

/* ============================================================
   DATE LABELS
   ============================================================ */

.date-labels {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.date-box {
    background: #f5f8fc;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1a3d6d;
    flex: 1;
    text-align: center;
    margin: 0 5px;
}

/* ============================================================
   TIDE CHART
   ============================================================ */

.chart-wrapper {
    width: 100%;
    height: 300px;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .chart-wrapper {
        height: 240px;
    }
}

/* ============================================================
   TIDE TABLE
   ============================================================ */

.tide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
}

.tide-table th {
    background: #1a3d6d;
    color: #fff;
    padding: 8px;
    text-align: left;
}

.tide-table td {
    border: 1px solid rgba(0,0,0,0.1);
    padding: 8px;
    vertical-align: top;
}

/* ============================================================
   MINI WIDGET (Homepage)
   ============================================================ */

.peanut-mini-widget {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    color: #333;
}

.peanut-mini-widget h3 {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    color: #1a3d6d;
}

.mini-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 6px;
}

.mini-row div {
    flex: 1 1 45%;
    min-width: 140px;
}

.peanut-mini-widget strong {
    font-weight: 600;
    margin-right: 4px;
}

.mini-updated {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #555;
}

/* ============================================================
   MOBILE STACKING — FINAL, DEVICE-FORCED VERSION
   ============================================================ */

@media screen and (max-width: 768px) {
    .mini-row {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .mini-row div {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: left !important;
    }
}
