/* ****************************************
 * Owner form and customer preview
 * **************************************** */
.checker-builder { align-items: start; row-gap: 28px; }
.checker-intro { grid-column: 1 / -1; }
.checker-intro .hero-lead, .checker-intro .hero-description { max-width: none; }
.checker-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
.checker-builder label, .checker-share label { display: block; font-size: 15px; font-weight: bold; margin-bottom: 5px; }
.checker-builder input:not([type="hidden"]), .checker-builder textarea, .checker-share input, .checker-share textarea {
    display: block;
    width: 100%;
    min-width: 0;
    border: 1px solid #82938b;
    border-radius: 4px;
    padding: 10px 12px;
    color: var(--ink);
    background: white;
    font: inherit;
    line-height: 1.45;
}
.checker-builder textarea, .checker-share textarea { resize: vertical; }
.checker-builder :is(input, textarea):focus-visible, .checker-share :is(input, textarea):focus-visible { outline: 3px solid #dc971d; outline-offset: 2px; }
.checker-builder button, .checker-share button, .checker-map button { cursor: pointer; }
.checker-builder button:disabled, .checker-fields:disabled button { cursor: wait; opacity: .65; }
.checker-help { font-size: 14px; line-height: 1.5; color: var(--muted); }
#districtHelp { margin-bottom: 9px; }
.checker-wording { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.checker-wording legend { margin-bottom: 8px; padding: 0; font-weight: bold; }
.checker-wording input + label { margin-top: 12px; }
.checker-wording .preview-link { display: none; }
#ownerEmailField { margin-top: 15px; }
#emailHelp { margin-top: 5px; }
#saveChecker { margin-top: 20px; }
.checker-preview { min-width: 0; }
.checker-section-heading { font-size: clamp(22px, 2vw, 27px); margin-bottom: 7px; }
.checker-section-heading label { font: inherit; margin: 0; }

/* **************************************** */
/* * Example florist website around the working customer checker */
/* **************************************** */
.checker-example-site { margin-top: 16px; padding-bottom: clamp(12px, 2vw, 22px); overflow: hidden; border: 1px solid #d7d1c6; border-radius: 6px; background: #f9f6ee; }
.checker-example-masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 20px; color: #f8f3e7; background: #293c33; }
.checker-example-masthead span:first-child { font: italic 26px/1.2 Georgia, serif; }
.checker-example-masthead span:last-child { font-size: 13px; }
.checker-example-delivery { display: grid; grid-template-columns: 1.1fr 1fr; background: #ede7d9; color: #323b2e; }
.checker-example-delivery > div { align-self: center; padding: clamp(12px, 2vw, 24px); }
.checker-example-delivery p { margin: 0 0 6px; font: normal clamp(22px, 3vw, 34px)/1.04 Georgia, serif; }
.checker-example-delivery span { display: block; font-size: 14px; line-height: 1.4; }
.checker-example-delivery img { width: 100%; height: 100%; max-height: 190px; object-fit: cover; }
.checker-sample { background: white; border: 1px solid var(--line); border-radius: 3px; padding: clamp(12px, 2vw, 24px); margin: clamp(12px, 2vw, 22px) clamp(10px, 2vw, 20px) 0; }
.checker-sample h3, .checker-search .button { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.checker-sample h3 { margin: 0 0 12px; font-size: clamp(20px, 2vw, 28px); line-height: 1.18; }
.checker-sample label { margin-bottom: 4px; font-weight: normal; font-size: 16px; }
.checker-search { display: flex; flex-wrap: wrap; gap: 8px; }
.checker-search input { flex: 1 1 9rem; text-transform: uppercase; }
.checker-search .button { min-height: 42px; padding: 8px 12px; border: 0; background: #326d29; font-size: 16px; }
.checker-credit { margin-top: 12px; padding-top: 8px; border-top: 1px solid #d6ddd9; font-size: 12px; }
.checker-credit a { color: #405e78; }
.checker-builder [aria-invalid="true"] { border-color: #8a3c1a; }
.checker-message { overflow-wrap: anywhere; font-size: 14px; }
.checker-message:not(:empty) { margin-top: 12px; }
.checker-message.covered, .checker-message.outside { padding: 6px 10px; border-left: 3px solid; font-size: 16px; }
.checker-message.covered { background: #edf5e9; color: #235822; }
.checker-message.outside { background: #fcf4e9; color: #653a22; }

/* ****************************************
 * Saved checker and map colouring tool
 * **************************************** */
.checker-share { padding-block: clamp(20px, 3vw, 36px); border-block: 1px solid var(--line); }
.checker-confirmation { display: flex; gap: 12px; align-items: start; margin-bottom: 18px; }
.checker-confirmation > svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; color: #21674c; background: #e4f2e9; }
.checker-confirmation h2 { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.3; }
.checker-confirmation .checker-message:not(:empty) { margin-top: 2px; color: var(--muted); }
.checker-map { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 3.2vw, 42px); border-radius: 8px; color: #fff; background: #173e40; }
.checker-map > div { flex: 1; min-width: 0; }
.checker-map h3 { max-width: 22ch; color: #fff; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.checker-map-description { max-width: 48ch; margin-top: 14px; color: #e5efeb; line-height: 1.5; }
.checker-map-action { margin-top: 20px; background: #ffdc83; color: #1c332e; border-color: #e2b854; font-size: 16px; }
.checker-licence, #coverageMapStatus:not(:empty), #coverageMapLimits { margin-top: 10px; color: #d6e6df; font-size: 14px; line-height: 1.45; }
#coverageMapCopy { margin-top: 8px; }
#coverageMapFigure { flex: 0 1 42%; min-width: 0; border-radius: 5px; overflow: hidden; background: #fff; color: #233d3b; }
#coverageMapFigure img { width: 100%; height: auto; }
#coverageMapFigure figcaption { padding: 9px 14px; border-top: 1px solid #cedbd7; font-size: 14px; font-weight: bold; }

/* ****************************************
 * Customer links and website code
 * **************************************** */
.checker-sharing { margin-top: 24px; }
.checker-sharing h3 { font-size: 21px; }
.checker-share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0; }
.checker-sharing button { padding: 8px 14px; min-height: 42px; border: 1px solid #a6b5b1; border-radius: 4px; color: #264744; background: white; font-size: 15px; font-weight: bold; }
.checker-sharing button:hover { background: #eef4f1; border-color: #738f82; }
.checker-sharing .text-link { padding: 9px 4px; }
.checker-sharing details { border-top: 1px solid var(--line); }
.checker-sharing summary { padding: 9px 0; color: #375873; cursor: pointer; font-size: 14px; font-weight: bold; }
.checker-sharing details[open] { padding-bottom: 12px; }
.checker-sharing details :is(input, textarea) { max-width: 75ch; margin-bottom: 8px; font-size: 14px; }
.checker-sharing .checker-message:not(:empty) { margin: 0 0 10px; }

/* ****************************************
 * Narrow phone layout
 * **************************************** */
@media (max-width: 760px) {
    .checker-wording .preview-link { display: inline-block; margin-top: 8px; font-size: 14px; }
    .checker-map { flex-direction: column; align-items: stretch; }
    #coverageMapFigure { flex: auto; }
}
@media (max-width: 480px) {
    .checker-map-action { width: 100%; gap: 8px; padding-inline: 10px; }
    .checker-share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
    .checker-share-actions button { padding-inline: 6px; }
    .checker-share-actions .text-link { grid-column: 1 / -1; justify-self: start; }
}
