/* ============================================================
   Abdallah Candies — Delivery Date Calendar Styles
   Replace the existing <style> block in
   wc_delivery_date_summer_ship.php with these rules
   ============================================================ */

/* Outer row — remove default WC table styling */
tr#dlv-date-smr-ship-cal th {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #666;
    vertical-align: top;
    padding-top: 20px;
    padding-right: 24px;
    white-space: nowrap;
}

/* Calendar wrapper */
tr#dlv-date-smr-ship-cal td#dlv-date-smr-ship-cal {
    padding: 16px 0 24px 0;
}

/* Remove the raw HTML border attribute and reset the table */
table#dlv-date-smr-ship-cal {
    border-collapse: collapse;
    border: none;
    width: 100%;
    max-width: 520px;
    font-family: Georgia, 'Times New Roman', serif;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    margin-top: 4px;
    margin-bottom: 8px;
}

/* Header row — dark chocolate bar */
table#dlv-date-smr-ship-cal tr:first-child {
    background-color: #3c2a1a;
}
table#dlv-date-smr-ship-cal tr:first-child th {
    padding: 14px 10px;
    color: #f5e9d8;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: .04em;
    border: none;
    text-transform: none;
}
table#dlv-date-smr-ship-cal tr:first-child th:first-child,
table#dlv-date-smr-ship-cal tr:first-child th:last-child {
    width: 36px;
}

/* Navigation arrows */
table#dlv-date-smr-ship-cal a.dlv-date-smr-ship-move-cal {
    color: #c9a97a;
    font-size: 18px;
    text-decoration: none;
    padding: 0 6px;
    display: inline-block;
    line-height: 1;
    transition: color .15s;
}
table#dlv-date-smr-ship-cal a.dlv-date-smr-ship-move-cal:hover {
    color: #f5e9d8;
}

/* Day-of-week row */
table#dlv-date-smr-ship-cal tr:nth-child(2) td {
    background: #f5efe4;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #7a6347;
    padding: 8px 4px;
    border: 0.5px solid #e8dece;
}

/* All day cells */
table#dlv-date-smr-ship-cal tbody tr td {
    text-align: center;
    vertical-align: top;
    padding: 8px 6px 10px;
    font-size: 13px;
    color: #aaa;
    border: 0.5px solid #ede5d8;
    min-width: 52px;
    
    background: #fff;
}

/* Day number inside each cell */
table#dlv-date-smr-ship-cal tbody tr td div {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 3px;
    line-height: 1.3;
}

/* Available dates — cream highlight */
table#dlv-date-smr-ship-cal td.has-price {
    background-color: #faf5ed;
    cursor: pointer;
    transition: background-color .15s;
}
table#dlv-date-smr-ship-cal td.has-price div {
    color: #3c2a1a;
    font-weight: 500;
}
table#dlv-date-smr-ship-cal td.has-price:hover {
    background-color: #f0e4cc;
}

/* Selected date — soft green confirmation */
table#dlv-date-smr-ship-cal td.price-selected,
table#dlv-date-smr-ship-cal td.price-selected:hover {
    background-color: #e8f5e2 !important;
    cursor: pointer;
}
table#dlv-date-smr-ship-cal td.price-selected div {
    color: #2d5a22;
}

/* Price link inside available cells */
table#dlv-date-smr-ship-cal a.dlv-date-smr-ship-rate {
    display: inline-block;
    margin-top: 2px;
    color: #7a4e1e;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
}
table#dlv-date-smr-ship-cal a.dlv-date-smr-ship-rate:hover {
    color: #3c2a1a;
    text-decoration: underline;
}
table#dlv-date-smr-ship-cal td.price-selected a.dlv-date-smr-ship-rate {
    color: #3a6e2a;
}