/* ======================================================
   BASKET PAGE — modern e-commerce style
   Palette: #4D5774 (dark blue), #C2D2E7 (light blue),
            #A4E3B4 (mint), #7DAE2A (olive green),
            #D9F48A (lime), #333333 (text), #414F65 (dark text)
   ====================================================== */

/* ---- Page heading ---- */
#basket-page h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-family: Arial, sans-serif;
    font-size: 22px;
    color: #4D5774;
    border-bottom: 2px solid #C2D2E7;
    padding-bottom: 8px;
}

/* ---- Empty state ---- */
#basket-empty {
    display: none;
    padding: 24px 16px;
    background: #F4F8FB;
    border: 1px solid #C2D2E7;
    border-radius: 6px;
    color: #414F65;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

#basket-empty a {
    color: #7DAE2A;
    font-weight: bold;
    text-decoration: none;
}

#basket-empty a:hover {
    text-decoration: underline;
}

/* ---- Cart table ---- */
#basket-table {
    width: 100%;
    border: 1px solid #C2D2E7;
    border-collapse: collapse;
    display: none;
    font-family: Arial, sans-serif;
    font-size: 13px;
    border-radius: 6px;
    overflow: hidden;
}

.basket-col-price,
.basket-col-qty,
.basket-col-sum {
    width: 120px;
}

.basket-col-actions {
    width: 90px;
}

#basket-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #E8EFF7;
    vertical-align: middle;
    color: #333333;
}

#basket-table .basket-table-header td {
    background: #4D5774;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    border-bottom: none;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

#basket-rows tr:last-child td {
    border-bottom: none;
}

#basket-rows tr:hover td {
    background: #F4F8FB;
}

#basket-rows td a {
    color: #4D5774;
    text-decoration: none;
    font-weight: bold;
}

#basket-rows td a:hover {
    color: #7DAE2A;
    text-decoration: underline;
}

/* ---- Quantity input ---- */
.basket-qty {
    width: 64px;
    padding: 5px 6px;
    border: 1px solid #C2D2E7;
    border-radius: 4px;
    font-size: 13px;
    color: #333333;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
}

.basket-qty:focus {
    border-color: #7DAE2A;
    box-shadow: 0 0 0 2px rgba(125, 174, 42, 0.18);
}

/* ---- Remove button (inline in table) ---- */
.basket-remove {
    padding: 4px 10px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    background: #fff;
    border: 1px solid #C2D2E7;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.basket-remove:hover {
    background: #ffeaea;
    border-color: #c0392b;
    color: #c0392b;
}

/* ---- Controls bar (total + clear) ---- */
#basket-controls {
    display: none;
    margin-top: 14px;
    padding: 14px 16px;
    background: #F4F8FB;
    border: 1px solid #C2D2E7;
    border-radius: 6px;
}

#basket-total-wrap {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #414F65;
    line-height: 1.6;
    margin-bottom: 12px;
}

#basket-total {
    color: #4D5774;
}

#basket-controls-actions {
    margin-top: 4px;
}

/* ---- Order form card ---- */
#basket-order {
    display: none;
    margin-top: 22px;
    padding: 20px 20px 16px;
    background: #FFFFFF;
    border: 1px solid #C2D2E7;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(77, 87, 116, 0.07);
}

#basket-order h3 {
    margin: 0 0 14px 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #4D5774;
    border-bottom: 1px solid #C2D2E7;
    padding-bottom: 8px;
}

#basket-order-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    max-width: 480px;
}

#basket-order-table td {
    padding: 8px !important;
    vertical-align: middle;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #414F65;
}

#basket-order-table td:first-child {
    width: 110px;
    white-space: nowrap;
    font-weight: bold;
    color: #4D5774;
}

#basket-order-table td:last-child {
    /* padding-left: 6px;
    padding-right: 6px; */
    color: #4D5774;
}

/* ---- Order form inputs ---- */
#basket-order-table input,
#basket-order-table textarea {
    width: 280px;
    padding: 7px 10px;
    border: 1px solid #C2D2E7;
    border-radius: 4px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    color: #333333;
    background: #FAFCFF;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

#basket-order-table input:focus,
#basket-order-table textarea:focus {
    border-color: #7DAE2A;
    box-shadow: 0 0 0 2px rgba(125, 174, 42, 0.18);
    background: #FFFFFF;
}

#basket-order-table textarea {
    height: 72px;
    resize: vertical;
}

#basket-order-actions {
    margin-top: 16px;
}

#basket-order-status {
    margin-top: 10px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #4D5774;
    min-height: 20px;
}

#basket-order-status.basket-status-error {
    color: #CC0000;
    font-weight: bold;
}

#basket-order-status.basket-status-success {
    color: #2E7D32;
}

/* ---- Action buttons ---- */
.basket-btn {
    padding: 9px 22px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.basket-btn-clear {
    background: #FFFFFF;
    border-color: #C2D2E7;
    color: #4D5774;
}

.basket-btn-clear:hover {
    background: #ffeaea;
    border-color: #c0392b;
    color: #c0392b;
}

.basket-btn-order {
    background: #4D5774;
    border-color: #3a4259;
    color: #D9F48A;
    letter-spacing: 0.3px;
}

.basket-btn-order:hover {
    background: #3a4259;
    box-shadow: 0 2px 6px rgba(77, 87, 116, 0.25);
}

.basket-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}
