/* APD 3.90 — Service Engine: offerings, coverage map, scheduling/location flow and checkout summary. */
html.apd390-modal-open,body.apd390-modal-open{overflow:hidden!important}
.apd390-section-intro{margin:-8px 0 22px;color:#6a6a6a;font-size:15px}
.apd390-offering-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.apd390-offering-card{display:grid;grid-template-columns:150px minmax(0,1fr);overflow:hidden;border:1px solid #e4e4e4;border-radius:20px;background:#fff;box-shadow:0 8px 26px rgba(15,23,42,.06)}
.apd390-offering-card>img{width:100%;height:100%;min-height:170px;object-fit:cover}
.apd390-offering-card>div{padding:18px;display:flex;flex-direction:column;align-items:flex-start}
.apd390-offering-card h3{margin:0 0 8px;font-size:19px;line-height:1.2;color:#222}
.apd390-offering-card p{margin:0 0 14px;color:#666;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.apd390-offering-meta{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-top:auto;color:#6b6b6b;font-size:14px}
.apd390-offering-meta strong{color:#222;font-size:16px}
.apd390-offering-card button,.apd390-service-booking-bar button,.apd390-primary{border:0;border-radius:12px;background:#0c5fd7;color:#fff;font-weight:750;cursor:pointer}
.apd390-offering-card button{margin-top:14px;padding:10px 16px}
.apd390-coverage-section>p{max-width:760px;color:#666;font-size:17px;line-height:1.45;margin:0 0 20px}
.apd390-coverage-map{height:350px;border-radius:22px;overflow:hidden;background:linear-gradient(140deg,#eaf3e0,#ddecf5);position:relative;border:1px solid #e7e7e7}
.apd390-map-fallback{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;text-align:center;color:#5b6570;background:radial-gradient(circle at 40% 30%,rgba(255,255,255,.8),transparent 34%),linear-gradient(135deg,#eef7dc,#dcecf8)}
.apd390-map-fallback>span{font-size:38px}.apd390-map-fallback strong{font-size:18px;color:#29333c}.apd390-map-fallback small{max-width:320px}
.apd390-service-booking-bar em{display:block;color:#0c7a3b;font-size:12px;font-style:normal;margin-top:2px}

.apd390-modal[hidden]{display:none!important}.apd390-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:24px}.apd390-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.45);cursor:default}
.apd390-dialog,.apd390-address-dialog{position:relative;width:min(640px,calc(100vw - 32px));max-height:min(90vh,900px);display:flex;flex-direction:column;background:#fff;border-radius:28px;box-shadow:0 26px 70px rgba(0,0,0,.28);overflow:hidden}
.apd390-dialog>header,.apd390-address-dialog>header{min-height:74px;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;border-bottom:1px solid #ededed;padding:0 16px}
.apd390-dialog>header h2,.apd390-address-dialog>header h2{margin:0;font-size:23px;text-align:center;color:#222;font-weight:750}
.apd390-dialog>header button,.apd390-address-dialog>header button{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;border-radius:50%;width:42px;height:42px}.apd390-dialog>header button:hover,.apd390-address-dialog>header button:hover{background:#f2f2f2}.apd390-dialog>header>[data-apd390-close]{grid-column:3}.apd390-dialog>header>.apd390-back{grid-column:1;grid-row:1}.apd390-dialog>header h2{grid-column:2;grid-row:1}
.apd390-dialog-body{overflow:auto;padding:0 24px 28px;min-height:500px}.apd390-step{padding-top:22px}
.apd390-party-row{display:flex;align-items:center;justify-content:space-between;padding:4px 0 20px;border-bottom:1px solid #eee}.apd390-party-row>div:first-child{display:flex;flex-direction:column}.apd390-party-row strong{font-size:17px}.apd390-party-row small{color:#777}.apd390-party-row>div:last-child{display:flex;align-items:center;gap:14px}.apd390-party-row button{width:34px;height:34px;border:1px solid #d8d8d8;border-radius:50%;background:#fff;font-size:21px;cursor:pointer}.apd390-party-row output{min-width:18px;text-align:center;font-weight:700}
.apd390-date-field{display:flex;align-items:center;justify-content:space-between;padding:19px 0;border-bottom:1px solid #eee}.apd390-date-field span{font-weight:700}.apd390-date-field input{border:1px solid #d9d9d9;border-radius:12px;padding:10px 12px;font:inherit}
.apd390-schedule-status{padding:17px 0;color:#666;font-size:14px}
.apd390-schedule-offerings{display:flex;flex-direction:column;gap:24px}.apd390-schedule-offering{padding-bottom:22px;border-bottom:1px solid #eee}.apd390-schedule-offering-head{display:flex;align-items:center;gap:14px;margin-bottom:13px}.apd390-schedule-offering-head img{width:64px;height:64px;border-radius:12px;object-fit:cover}.apd390-schedule-offering-head>div{display:flex;flex-direction:column}.apd390-schedule-offering-head strong{font-size:17px}.apd390-schedule-offering-head span{color:#555;margin-top:3px;font-size:14px}.apd390-slot-grid{display:flex;flex-wrap:wrap;gap:8px}.apd390-slot{min-width:82px;border:1px solid #d8d8d8;border-radius:12px;background:#fff;padding:10px 11px;font-weight:650;color:#222;cursor:pointer}.apd390-slot:hover{border-color:#222}.apd390-slot.is-active{background:#222;color:#fff;border-color:#222}.apd390-no-slots{color:#8a8a8a;font-size:14px}.apd390-link-button{display:inline-flex;margin-top:20px;border:0;background:none;text-decoration:underline;font-weight:700;cursor:pointer;color:#222;padding:0}
.apd390-location-hero{text-align:center;padding:4px 20px 22px}.apd390-location-hero>span{display:block;font-size:50px;margin-bottom:8px}.apd390-location-hero h3{font-size:26px;margin:0 0 8px}.apd390-location-hero p{max-width:470px;margin:0 auto;color:#666;line-height:1.45}.apd390-location-options{display:flex;flex-direction:column;gap:10px}.apd390-location-card{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 24px;align-items:center;text-align:left;gap:10px;border:1px solid #ddd;border-radius:16px;background:#fff;padding:14px;cursor:pointer}.apd390-location-card:hover,.apd390-location-card.is-selected{border-color:#222;box-shadow:0 0 0 1px #222}.apd390-location-card>span{font-size:24px;text-align:center}.apd390-location-card>div{display:flex;flex-direction:column}.apd390-location-card strong{font-size:16px}.apd390-location-card small{color:#777;margin-top:3px}.apd390-location-card>b{font-size:22px;color:#777}.apd390-selected-location{margin-top:14px;padding:13px 15px;background:#f7f7f7;border-radius:13px;display:flex;flex-direction:column;gap:3px}.apd390-selected-location span{color:#555}.apd390-primary{width:100%;min-height:50px;margin-top:18px;font-size:16px}.apd390-primary:disabled{background:#d6d6d6;color:#888;cursor:not-allowed}
.apd390-review-card{border:1px solid #e3e3e3;border-radius:18px;padding:18px}.apd390-review-card>div:first-child{display:flex;flex-direction:column;border-bottom:1px solid #eee;padding-bottom:13px}.apd390-review-card>div:first-child strong{font-size:19px}.apd390-review-card>div:first-child span{color:#666;margin-top:4px}.apd390-review-card dl{margin:0}.apd390-review-card dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid #eee}.apd390-review-card dt{font-weight:700}.apd390-review-card dd{margin:0;text-align:right}.apd390-review-card>small{display:block;color:#707070;margin-top:13px;line-height:1.4}.apd390-inline-error{margin-top:14px;padding:12px 14px;border-radius:12px;background:#fff2f2;color:#9d1d1d}.apd390-inline-error button{border:0;background:none;text-decoration:underline;color:inherit;font-weight:700;cursor:pointer}
.apd390-address-dialog{width:min(590px,calc(100vw - 28px));min-height:min(72vh,620px)}.apd390-address-dialog>header{grid-template-columns:48px 1fr}.apd390-address-dialog>header h2{text-align:left;font-size:20px}.apd390-address-search{margin:18px 22px 8px;border:1px solid #d9d9d9;border-radius:28px;display:flex;align-items:center;padding:0 16px;gap:9px}.apd390-address-search>span{font-size:22px}.apd390-address-search input{width:100%;border:0;outline:0;padding:14px 0;font-size:16px;background:transparent}.apd390-address-results{padding:0 22px 22px;overflow:auto}.apd390-address-results button{width:100%;display:grid;grid-template-columns:36px 1fr;gap:10px;text-align:left;border:0;border-bottom:1px solid #eee;background:#fff;padding:13px 5px;cursor:pointer}.apd390-address-results button:hover{background:#fafafa}.apd390-address-results button>span{font-size:20px}.apd390-address-results button>div{display:flex;flex-direction:column}.apd390-address-results button small{color:#777;margin-top:2px}.apd390-address-empty{color:#777;padding:14px 4px}
.apd390-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);z-index:1000005;background:#222;color:#fff;border-radius:12px;padding:12px 18px;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 12px 30px rgba(0,0,0,.22)}.apd390-toast.is-visible{opacity:1;transform:translate(-50%,0)}.apd390-toast.is-error{background:#8f2222}
.apd390-pay-summary{max-width:740px;margin:0 0 26px;background:#fff;border:1px solid #e2e2e2;border-radius:20px;padding:22px}.apd390-pay-summary h1{margin:0 0 18px;font-size:27px}.apd390-pay-grid>div:first-child{display:flex;flex-direction:column;padding-bottom:15px;border-bottom:1px solid #eee}.apd390-pay-grid>div:first-child strong{font-size:18px}.apd390-pay-grid>div:first-child small{color:#777;margin-top:3px}.apd390-pay-summary dl{margin:0}.apd390-pay-summary dl>div{display:grid;grid-template-columns:110px 1fr auto;gap:12px;align-items:center;border-bottom:1px solid #eee;padding:12px 0}.apd390-pay-summary dt{font-weight:700}.apd390-pay-summary dd{margin:0}.apd390-pay-summary a{text-decoration:underline;color:#222;font-weight:650}
@media(max-width:900px){.apd390-offering-grid{grid-template-columns:1fr}.apd390-coverage-map{height:300px}}
@media(max-width:640px){.apd390-modal{padding:0;align-items:flex-end}.apd390-dialog,.apd390-address-dialog{width:100%;max-height:94vh;border-radius:24px 24px 0 0}.apd390-dialog-body{padding:0 16px 22px;min-height:540px}.apd390-offering-card{grid-template-columns:105px 1fr}.apd390-offering-card>img{min-height:150px}.apd390-offering-card>div{padding:14px}.apd390-coverage-map{height:260px}.apd390-pay-summary dl>div{grid-template-columns:1fr auto}.apd390-pay-summary dl>div a{grid-column:2}.apd390-review-card dl>div{grid-template-columns:95px 1fr}}
/* Offering detail modal mirrors the APD Service flow: discover the offering first, then schedule it. */
.apd390-offering-dialog{position:relative;width:min(1040px,calc(100vw - 40px));max-height:min(88vh,760px);display:grid;grid-template-columns:minmax(320px,1fr) minmax(360px,.92fr);background:#fff;border-radius:28px;box-shadow:0 26px 70px rgba(0,0,0,.28);overflow:hidden}
.apd390-offering-x{position:absolute;z-index:2;top:16px;right:16px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#222;font-size:27px;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.08)}
.apd390-offering-detail-image{min-height:500px;background:#f2f2f2}.apd390-offering-detail-image img{width:100%;height:100%;min-height:500px;object-fit:cover;display:block}
.apd390-offering-detail-copy{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:56px 48px}.apd390-offering-detail-copy h2{margin:0 0 7px;font-size:34px;line-height:1.1;color:#222}.apd390-offering-detail-price{font-size:16px;font-weight:700;color:#222}.apd390-offering-detail-copy>p{max-width:560px;margin:34px 0 30px;color:#686868;line-height:1.55;font-size:16px}.apd390-offering-detail-copy .apd390-primary{width:auto;min-width:165px;padding:0 25px}
.apd390-cancel-deadline{margin:9px 0 0;color:#0c7a3b;font-size:13px}
@media(max-width:800px){.apd390-offering-dialog{grid-template-columns:1fr;overflow:auto;max-height:92vh}.apd390-offering-detail-image,.apd390-offering-detail-image img{min-height:260px;height:280px}.apd390-offering-detail-copy{padding:30px 24px 34px}.apd390-offering-detail-copy h2{font-size:27px}.apd390-offering-detail-copy>p{margin:22px 0}}
