/* ============================================================
   Nursery Orders — Frontend order form
   ============================================================ */

.no-form-wrap {
    font-family: 'Georgia', 'Times New Roman', serif;
    max-width: 960px;
    margin: 0 auto 40px;
    color: #2c2c28;
}

/* ── Header ── */
.no-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0 16px;
    border-bottom: 2px solid #2d6a4f;
    margin-bottom: 24px;
}
.no-form-biz h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1b4332;
}
.no-form-biz p {
    font-size: 12px;
    color: #555;
    margin: 2px 0;
    font-family: sans-serif;
    line-height: 1.5;
}
.no-form-biz a { color: #2d6a4f; }
.no-form-season { text-align: right; font-family: sans-serif; }
.no-form-season span { display: block; font-size: 15px; font-weight: 600; color: #2d6a4f; }
.no-form-season small { font-size: 12px; color: #999; }

/* ── Section labels ── */
.no-section-label {
    font-family: sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ── Client fields ── */
.no-client-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
    font-family: sans-serif;
}
@media (max-width: 560px) { .no-client-grid { grid-template-columns: 1fr; } }
.no-field-wide { grid-column: 1 / -1; }
.no-field-wrap label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
    margin-bottom: 5px;
}
.no-field-wrap input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d4d4c8;
    border-radius: 6px;
    font-size: 14px;
    background: #fafaf8;
    box-sizing: border-box;
    font-family: sans-serif;
    transition: border-color 0.15s;
}
.no-field-wrap input:focus { outline: none; border-color: #2d6a4f; background: #fff; }

/* ── Products hint ── */
.no-products-hint {
    font-family: sans-serif;
    font-size: 13px;
    color: #888;
    margin: 0 0 14px;
}

/* ── 3-column product grid ── */
.no-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 680px) { .no-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .no-products-grid { grid-template-columns: 1fr; } }

.no-product-card {
    background: #fff;
    border: 1px solid #e2e2dc;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.no-product-card.no-has-qty {
    border-color: #2d6a4f;
    box-shadow: 0 0 0 2px rgba(45,106,79,0.12);
}

.no-prod-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0ec;
    overflow: hidden;
}
.no-prod-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.no-prod-img-empty {
    width: 100%;
    height: 100%;
    background: #f0f0ec;
}

.no-prod-body {
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: sans-serif;
    flex: 1;
}
.no-prod-body strong { font-size: 13px; font-weight: 600; color: #222; line-height: 1.3; }
.no-prod-body span   { font-size: 11px; color: #888; }
.no-prod-price       { color: #2d6a4f !important; font-weight: 600 !important; font-size: 12px !important; margin-top: 4px; }

.no-prod-qty-wrap {
    padding: 8px 12px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: sans-serif;
    border-top: 1px solid #eeeee8;
}
.no-prod-qty-wrap label {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.no-qty-input {
    flex: 1;
    padding: 6px 8px;
    text-align: center;
    border: 1px solid #d4d4c8;
    border-radius: 5px;
    font-size: 15px;
    font-family: sans-serif;
    background: #fafaf8;
    min-width: 0;
}
.no-qty-input:focus { outline: none; border-color: #2d6a4f; background: #fff; }
.no-qty-input.no-has-qty { border-color: #2d6a4f; background: #eaf3ee; font-weight: 600; }

/* ── Barcoding ── */
.no-barcode-row {
    background: #fffbe6;
    border: 1px solid #f0d060;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-family: sans-serif;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}
.no-barcode-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #5a4500;
    cursor: pointer;
    white-space: nowrap;
}
.no-barcode-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: #2d6a4f; cursor: pointer; }
.no-barcode-note { font-size: 12px; color: #8a6f00; line-height: 1.5; }

/* ── Discount tiers ── */
.no-tiers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-family: sans-serif;
}
.no-tiers-label { font-size: 12px; color: #888; font-weight: 600; margin-right: 2px; }
.no-tier-pill {
    font-size: 12px;
    background: #f0f7f4;
    color: #2d6a4f;
    border: 1px solid #b7dfca;
    border-radius: 20px;
    padding: 3px 10px;
}

/* ── Order summary ── */
.no-order-summary {
    background: #fff;
    border: 1px solid #2d6a4f;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    font-family: sans-serif;
}
.no-summary-title {
    background: #2d6a4f;
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.no-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.no-summary-table th {
    padding: 8px 14px;
    text-align: left;
    background: #f5f5f0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    border-bottom: 1px solid #eee;
}
.no-summary-table th:last-child,
.no-summary-table td:last-child { text-align: right; }
.no-summary-table td { padding: 8px 14px; border-bottom: 1px solid #eeeee8; color: #333; }
.no-summary-table tfoot td {
    font-weight: 600;
    background: #f5f5f0;
    border-top: 1px solid #ddd;
    font-size: 14px;
}
.no-summary-table .no-barcode-line td { background: #fffbe6; color: #5a4500; font-style: italic; }
.no-discount-line td { color: #2d6a4f; }

/* ── Form footer / submit ── */
.no-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e2dc;
    font-family: sans-serif;
}
.no-form-notes { font-size: 12px; color: #999; margin: 0; }
.no-submit-btn {
    background: #2d6a4f;
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: sans-serif;
    transition: background 0.15s;
}
.no-submit-btn:hover   { background: #1b4332; }
.no-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

/* ── Error ── */
.no-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fdf0ed;
    border: 1px solid #f5bdb7;
    border-radius: 6px;
    font-size: 13px;
    color: #7b1c0e;
    font-family: sans-serif;
}

/* ── Success ── */
.no-success { text-align: center; padding: 50px 20px; font-family: sans-serif; }
.no-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: #2d6a4f;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    margin-bottom: 16px;
}
.no-success h3 { font-size: 22px; margin: 0 0 8px; color: #1b4332; }
.no-success p  { color: #666; margin: 0; }

/* Grand total row */
.no-summary-table .no-grand-total td {
    background: #1b4332;
    color: #fff;
    font-size: 15px;
    border-top: 2px solid #1b4332;
}

/* Plants per tray label on product card */
.no-prod-ppt {
    font-size: 11px !important;
    color: #2d6a4f !important;
    font-weight: 500 !important;
    background: #eaf3ee;
    border-radius: 20px;
    padding: 2px 8px;
    display: inline-block;
    width: fit-content;
}
