/* Crosby Loyalty Edge — Frontend Styles */

/* ── Checkout Box ── */
.clp-checkout-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 0 0 24px;
    border-left: 4px solid #c8963e;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.clp-login-prompt { color: #555; font-size: 14px; }
.clp-checkout-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.clp-icon { font-size: 20px; flex-shrink: 0; }
.clp-earn-preview {
    font-size: 12px;
    color: #27ae60;
    background: #d4edda;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: auto;
}
.clp-zero-balance { font-size: 13px; color: #888; margin: 0; }
.clp-redeem-row { margin-bottom: 10px; }
.clp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 14px;
    background: #fff9f0;
    border: 1px solid #c8963e;
    border-radius: 6px;
}
.clp-checkbox-label input { width: 18px; height: 18px; cursor: pointer; }
.clp-partial-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    flex-wrap: wrap;
}
.clp-input-small {
    width: 100px !important;
    padding: 6px 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}
.clp-btn-primary {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s;
}
.clp-btn-primary:hover { background: #c8963e; }
.clp-btn-remove {
    background: none;
    border: 1px solid #c0392b;
    color: #c0392b;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
}
.clp-applied-notice {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #d4edda;
    border: 1px solid #27ae60;
    border-radius: 6px;
    font-size: 14px;
    color: #155724;
}
.clp-partial-notice {
    font-size: 12px;
    color: #856404;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ── Cart preview ── */
.clp-cart-preview {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}
.clp-cart-preview strong { color: #f5c842; }

/* ── My Account Widget ── */
.clp-account-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.clp-account-balance {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.clp-big-icon { font-size: 48px; }
.clp-balance-number { font-size: 32px; font-weight: 800; color: #1a1a1a; line-height: 1; }
.clp-balance-label { font-size: 14px; color: #888; margin-top: 2px; }
.clp-balance-value { font-size: 13px; color: #c8963e; font-weight: 600; margin-top: 4px; }
.clp-activity-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.clp-activity-table th { padding: 8px 10px; text-align: left; background: #f8f8f8; font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.clp-activity-table td { padding: 8px 10px; border-bottom: 1px solid #f5f5f5; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .clp-checkout-header { flex-direction: column; align-items: flex-start; }
    .clp-earn-preview { margin-left: 0; }
    .clp-partial-row { flex-direction: column; align-items: flex-start; }
    .clp-account-balance { flex-direction: column; text-align: center; }
}
