/* Scrap Mama pickup booking popup */
.sd-js .sd-pickup-step:not(.sd-in-modal) { display: none; }

.fluentform .sd-open-pickup { width: 100%; cursor: pointer; border: 0; }
.fluentform .sd-open-wrap { margin-bottom: 0; }
#book .ff-message-success { border: 0; box-shadow: none; background: transparent; margin: 0; padding: 12px 22px; color: #16241C; font-size: 16px; line-height: 1.5; }
#book .ff-message-success p { margin: 0; }
.sd-phone-error { color: #B42318; font-size: 14px; margin: 6px 0 0 18px; }

html.sd-modal-open, html.sd-modal-open body { overflow: hidden; }

.sd-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 42, 28, 0.55); }
.sd-modal[hidden] { display: none; }
.sd-modal__panel { position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 40px); overflow-y: auto; background: #FFFFFF; border-radius: 22px; padding: 28px 28px 24px; box-shadow: 0 24px 60px rgba(12, 42, 28, 0.28); color: #16241C; font-family: 'DM Sans', system-ui, sans-serif; }
.sd-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sd-modal__title { margin: 0; font: 800 26px/1.15 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -0.3px; color: #16241C; }
.sd-modal__sub { margin: 6px 0 0; color: #5B6B62; font-size: 15px; }
.sd-modal__close { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #DCE5DE; background: #F5F7F2; color: #16241C; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.sd-modal__close:hover { background: #E3F2E8; }

.sd-modal .sd-pickup-step .ff-t-cell { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "name name" "date time" "city area" "addr addr" "submit submit"; gap: 18px 28px; align-items: start; }
.sd-modal .sd-field-date { grid-area: date; margin: 0; }
.sd-modal .sd-field-time { grid-area: time; margin: 0; }
.sd-modal .sd-field-address { grid-area: addr; margin: 0; }
.sd-modal .sd-field-submit { grid-area: submit; margin: 0; }
.sd-modal .ff-el-input--label label { font-weight: 600; font-size: 15px; color: #16241C; }
.sd-modal .ff-el-input--label { margin-bottom: 10px; }

/* Calendar */
.sd-modal .sd-field-date input.ff-el-datepicker { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; padding: 0; border: 0; }
.sd-modal .flatpickr-calendar.inline { box-shadow: none; border: 1px solid #DCE5DE; border-radius: 16px; padding: 6px 4px 8px; margin: 0; }
.sd-modal .flatpickr-months .flatpickr-month, .sd-modal .flatpickr-current-month { color: #16241C; font-weight: 600; }
.sd-modal .flatpickr-day { border-radius: 10px; }
.sd-modal .flatpickr-day.today { border-color: #12804A; }
.sd-modal .flatpickr-day.selected, .sd-modal .flatpickr-day.selected:hover, .sd-modal .flatpickr-day.selected:focus { background: #12804A; border-color: #12804A; color: #FFFFFF; }
.sd-modal .flatpickr-day:hover:not(.selected):not(.flatpickr-disabled) { background: #E3F2E8; border-color: #E3F2E8; }
.sd-modal .flatpickr-day.flatpickr-disabled { color: #B9C4BD; }

/* Time slots as tappable chips */
.sd-modal .sd-field-time .ff-el-input--content { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sd-modal .sd-field-time .ff-el-form-check { margin: 0; position: relative; }
.sd-modal .sd-field-time .ff-el-form-check-label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 10px 12px; border: 1px solid #DCE5DE; border-radius: 14px; background: #F5F7F2; font-weight: 600; font-size: 15px; color: #16241C; cursor: pointer; transition: background .15s, border-color .15s; }
.sd-modal .sd-field-time .ff-el-form-check-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sd-modal .sd-field-time .ff-el-form-check-label:hover { border-color: #12804A; }
.sd-modal .sd-field-time .ff-el-form-check.is-checked .ff-el-form-check-label { background: #12804A; border-color: #12804A; color: #FFFFFF; }
.sd-modal .sd-field-time .ff-el-form-check.is-disabled .ff-el-form-check-label { opacity: .4; cursor: not-allowed; text-decoration: line-through; border-color: #DCE5DE; }
.sd-modal .sd-field-time .ff-el-form-check-input:focus-visible + span { outline: 2px solid #12804A; outline-offset: 3px; border-radius: 4px; }
.sd-slot-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 14px; color: #B42318; }

/* Address */
.sd-modal .sd-field-address textarea { width: 100%; min-height: 92px; border: 1px solid #DCE5DE; border-radius: 16px; background: #F5F7F2; padding: 14px 18px; font: 16px/1.5 'DM Sans', system-ui, sans-serif; color: #16241C; resize: vertical; }
.sd-modal .sd-field-address textarea:focus { outline: none; border-color: #12804A; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(18, 128, 74, .15); }

.sd-modal .sd-field-submit button { width: 100%; min-height: 56px; margin: 0 !important; border-radius: 999px; font: 600 17px 'DM Sans', system-ui, sans-serif; }
.sd-modal .error.text-danger { font-size: 14px; margin-top: 6px; }

/* Booked confirmation */
.sd-done { text-align: center; padding: 8px 4px 4px; }
.sd-done__icon { width: 64px; height: 64px; border-radius: 50%; background: #E3F2E8; color: #12804A; display: grid; place-items: center; margin: 0 auto 16px; }
.sd-done__icon svg { width: 30px; height: 30px; }
.sd-done h3 { margin: 0 0 8px; font: 800 26px/1.15 'Bricolage Grotesque', system-ui, sans-serif; color: #16241C; }
.sd-done p { margin: 0 0 6px; color: #5B6B62; font-size: 16px; }
.sd-done .sd-done__when { color: #16241C; font-weight: 600; font-size: 17px; }
.sd-done button { margin-top: 18px; min-height: 52px; padding: 0 32px; border: 0; border-radius: 999px; background: #12804A; color: #FFFFFF; font: 600 16px 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.sd-modal--done .sd-modal__panel { max-width: 440px; }

@media (max-width: 767px) {
	.sd-modal { align-items: flex-end; padding: 0; }
	.sd-modal__panel { max-width: none; max-height: 92vh; border-radius: 22px 22px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
	.sd-modal--done { align-items: center; padding: 16px; }
	.sd-modal--done .sd-modal__panel { border-radius: 22px; }
	.sd-modal__title { font-size: 22px; }
	.sd-modal .sd-pickup-step .ff-t-cell { grid-template-columns: 1fr; grid-template-areas: "name" "date" "time" "city" "area" "addr" "submit"; gap: 18px; }
	.sd-modal .flatpickr-calendar.inline { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .sd-modal .sd-field-time .ff-el-form-check-label { transition: none; } }

/* Keep theme button and input styles out of the popup */
.sd-modal .sd-modal__close, .sd-modal .sd-modal__close:hover, .sd-modal .sd-modal__close:focus { width: 40px; height: 40px; padding: 0; border: 1px solid #DCE5DE; border-radius: 50%; background: #F5F7F2; color: #16241C; font-size: 24px; line-height: 1; box-shadow: none; text-decoration: none; }
.sd-modal .sd-modal__close:hover { background: #E3F2E8; }
.sd-modal .sd-done button, .sd-modal .sd-done button:hover, .sd-modal .sd-done button:focus { border: 0; background: #12804A; color: #FFFFFF; }
.sd-modal .sd-done button:hover { background: #0C2A1C; }
.sd-modal .flatpickr-current-month input.cur-year, .sd-modal .flatpickr-current-month input.cur-year:focus { width: 7ch !important; padding: 0 0 0 .5ch !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; font-size: inherit !important; font-weight: 600 !important; color: #16241C !important; height: auto !important; line-height: inherit !important; }
.sd-modal .flatpickr-current-month .numInputWrapper { width: 7ch; }
.sd-modal .flatpickr-months .flatpickr-prev-month:hover svg, .sd-modal .flatpickr-months .flatpickr-next-month:hover svg { fill: #12804A; }
.sd-modal .ff-el-input--label label { margin: 0; }
/* City and Sub-area (every Sub-area field shares one spot; only the chosen city's list is shown) */
.sd-modal .sd-field-city { grid-area: city; margin: 0; }
.sd-modal .sd-field-subarea { grid-area: area; margin: 0; }
.sd-modal .sd-field-city select, .sd-modal .sd-field-subarea select { width: 100%; height: 54px !important; border-radius: 14px !important; padding: 0 44px 0 18px !important; border: 1px solid #DCE5DE !important; background-color: #F5F7F2 !important; color: #16241C; font: 16px 'DM Sans', system-ui, sans-serif; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2316241C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 18px center !important; cursor: pointer; }
.sd-modal .sd-field-city select:focus, .sd-modal .sd-field-subarea select:focus { outline: none; border-color: #12804A !important; background-color: #FFFFFF !important; box-shadow: 0 0 0 3px rgba(18, 128, 74, .15); }

/* Address box: even padding, text starts with the same space on every side */
.sd-modal .sd-field-address textarea.ff-el-form-control { display: block; height: auto !important; min-height: 104px; padding: 16px 18px !important; border-radius: 16px !important; line-height: 1.5 !important; }
.sd-modal .sd-field-address textarea.ff-el-form-control::placeholder { line-height: 1.5; }

@media (max-width: 767px) {
	.sd-modal .sd-pickup-step .ff-t-cell { grid-template-columns: 1fr; }
}
/* Fluent's show/hide animation can't run while the popup is closed, so inside the popup
   visibility follows Fluent's own state classes instead (ff_cond_v = show, ff_excluded = hide). */
.sd-modal .has-conditions.ff_cond_v { display: block !important; height: auto !important; overflow: visible !important; }
.sd-modal .has-conditions.ff_excluded { display: none !important; }
/* Customer name */
.sd-modal .sd-field-name { grid-area: name; margin: 0; }
.sd-modal .sd-field-name input.ff-el-form-control { height: 54px !important; border-radius: 14px !important; padding: 0 18px !important; border: 1px solid #DCE5DE !important; background: #F5F7F2 !important; font: 16px 'DM Sans', system-ui, sans-serif; color: #16241C; }
.sd-modal .sd-field-name input.ff-el-form-control:focus { outline: none; border-color: #12804A !important; background: #FFFFFF !important; box-shadow: 0 0 0 3px rgba(18, 128, 74, .15); }