/* Customer/admin area styles, layered on top of style.css */

#maincontent h2 { margin-bottom: 12px; }
#maincontent h3 { margin: 18px 0 8px; }

/* Banners */
.banner {
    padding: 10px 14px;
    border-radius: 4px;
    margin: 0 0 16px;
    font-size: 13px;
}
.banner-success { background: #e6f4ea; border: 1px solid #b7dfc2; color: #1e6b34; }
.banner-error   { background: #fdecea; border: 1px solid #f5c2bd; color: #9b2c22; }
.banner-info    { background: #eef3fb; border: 1px solid #c3d4ef; color: #234d8e; }
.banner-warn    { background: #fff7e6; border: 1px solid #f3dca0; color: #8a6100; }

/* Forms */
.form { max-width: 520px; }
.form .field { margin-bottom: 14px; }
.form label { display: block; font-weight: bold; margin-bottom: 4px; font-size: 13px; }
.form input[type=text],
.form input[type=email],
.form input[type=password] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #c9c9c9;
    border-radius: 3px;
    font-size: 14px;
}
.form .hint { color: #777; font-size: 12px; margin-top: 3px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 9px 18px;
    background: #2d7d46;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: #266b3c; }
.btn-secondary { background: #5a6b7b; }
.btn-secondary:hover { background: #4a5965; }
.btn-pay { background: #c0392b; }
.btn-pay:hover { background: #a93226; }
.btn:disabled { background: #b5b5b5; cursor: default; }

/* PDP choice cards */
.choices { display: flex; gap: 16px; margin: 8px 0 4px; flex-wrap: wrap; }
.choice {
    flex: 1 1 200px;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    padding: 14px;
    cursor: pointer;
}
.choice:hover { border-color: #2d7d46; }
.choice input { margin-right: 8px; }
.choice .price { font-size: 18px; font-weight: bold; color: #2d7d46; }
.choice .name { font-weight: bold; font-size: 15px; }

/* Status box */
.status-box {
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fafafa;
}
.status-box .label { color: #777; font-size: 12px; }
.status-box .value { font-size: 15px; }

/* Tables */
table.data { border-collapse: collapse; width: 100%; font-size: 12px; }
table.data th, table.data td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}
table.data th { background: #f0f0f0; }
table.data tr:nth-child(even) td { background: #fafafa; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.pill-ok    { background: #e6f4ea; color: #1e6b34; }
.pill-wait  { background: #fff7e6; color: #8a6100; }
.pill-todo  { background: #fdecea; color: #9b2c22; }
.pill-muted { background: #eee; color: #555; }

.inline-form { display: inline; }
.links a { margin-right: 14px; }

/* Modal / confirmation popup */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    /* centered via JS toggling display:flex */
    align-items: center;
    justify-content: center;
}
.modal {
    background: #fff;
    border-radius: 6px;
    padding: 22px 24px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.modal h3 { margin: 0 0 12px; font-size: 16px; }
.modal p { margin: 0 0 20px; font-size: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 0; }
