/* Shared styling for the auto-layout estimate pages (4-Room, Executive, …). */
.al-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 18px 60px; }
.al-head h1 { font-family: 'Playfair Display', serif; font-size: clamp(26px, 5vw, 40px); margin: 0 0 10px; }
.al-head p { color: var(--gray-700); max-width: 720px; line-height: 1.6; margin: 0 0 6px; }
.al-preview-note { background: #FFF8E1; border: 1px solid #F5C22A; border-radius: 10px;
    padding: 12px 16px; margin: 16px 0 24px; font-size: 14px; line-height: 1.55; }
.al-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 26px; align-items: start; }
@media (max-width: 900px) { .al-grid { grid-template-columns: 1fr; } }

.al-plan { background: #fff; border: 1px solid #e6e6e6; border-radius: 14px; padding: 14px; position: sticky; top: 12px; }
@media (max-width: 900px) { .al-plan { position: static; } }
.al-plan svg { width: 100%; height: auto; display: block; }
.al-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; font-size: 12.5px; color: var(--gray-700); }
.al-legend span i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.al-plannote { font-size: 11.5px; color: var(--gray-700); margin: 10px 0 0; line-height: 1.5; }

.al-sec { border: 1px solid #e6e6e6; border-radius: 14px; margin-bottom: 16px; overflow: hidden; background: #fff; }
.al-sec > h3 { margin: 0; padding: 13px 16px; background: #FAFAFA; border-bottom: 1px solid #eee;
    font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.al-sec > h3 .st { font-weight: 600; color: var(--gray-700); font-size: 13px; }
.al-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #f4f4f4; }
.al-item:last-child { border-bottom: none; }
.al-item.off { opacity: .5; }
.al-item input[type=checkbox] { width: 19px; height: 19px; flex: none; accent-color: #D4A520; }
.al-nm { flex: 1 1 auto; min-width: 0; }
.al-nm b { display: block; font-size: 14px; font-weight: 600; }
.al-nm small { display: block; color: var(--gray-700); font-size: 11.5px; margin-top: 2px; line-height: 1.35; }
.al-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 20px;
    margin-left: 6px; vertical-align: 1px; letter-spacing: .3px; }
.al-badge.m { background: #E8F5E9; color: #1B5E20; }
.al-badge.c { background: #FFF3E0; color: #E65100; }
.al-qty { display: flex; align-items: center; gap: 4px; flex: none; }
.al-qty button { width: 28px; height: 28px; border: 1px solid #ddd; background: #fff; border-radius: 7px;
    font-size: 16px; line-height: 1; cursor: pointer; color: #333; }
.al-qty input { width: 46px; height: 28px; text-align: center; border: 1px solid #ddd; border-radius: 7px; font: inherit; font-size: 13px; }
.al-qty .u { font-size: 11px; color: var(--gray-700); width: 22px; }
.al-amt { flex: none; width: 78px; text-align: right; font-weight: 700; font-size: 13.5px; }
.al-sec select { width: 100%; padding: 9px 10px; border: 1px solid #ddd; border-radius: 8px; font: inherit; font-size: 13.5px; }

.al-total { position: sticky; bottom: 0; background: #1a1a1a; color: #fff; border-radius: 14px; padding: 16px 18px; margin-top: 4px; }
.al-total .row { display: flex; justify-content: space-between; align-items: baseline; }
.al-total .big { font-size: 30px; font-weight: 800; color: #F5C22A; }
.al-total small { display: block; color: #bbb; font-size: 11.5px; margin-top: 6px; line-height: 1.45; }
.al-cta { display: block; text-align: center; background: #25D366; color: #fff; font-weight: 700;
    padding: 13px; border-radius: 10px; margin-top: 12px; text-decoration: none; }
.al-disc { font-size: 12px; color: var(--gray-700); line-height: 1.55; margin-top: 14px;
    background: #FAFAFA; border: 1px solid #eee; border-radius: 10px; padding: 12px 14px; }

/* The floating WhatsApp button would sit on top of the sticky total on phones */
@media (max-width: 720px) { .wa-float { display: none !important; } }
