/* Minimal styles: layout only, the theme supplies typography and colour. */
.mapp-form{max-width:44rem}
.mapp-field{margin:0 0 1.25rem}
.mapp-field label,.mapp-field legend{display:block;font-weight:600;margin-bottom:.25rem}
.mapp-field input[type=text],.mapp-field input[type=email],.mapp-field input[type=tel],
.mapp-field select,.mapp-field textarea{width:100%;box-sizing:border-box;font:inherit;font-size:1em;line-height:1.4;padding:.55em .75em}
.mapp-row{display:flex;flex-wrap:wrap;gap:0 1rem}
.mapp-row>.mapp-field{flex:var(--mapp-grow,1) 1 9rem;min-width:0}
.mapp-field fieldset{border:0;margin:0;padding:0}
/* Checkboxes and radios: larger, themed (follows the block's button colour; --mapp-accent can be set in your theme CSS). */
.mapp-choice{display:flex;gap:.65rem;align-items:flex-start;font-weight:400!important;margin-bottom:.4rem!important;padding:.55rem .75rem;border:1px solid rgba(0,0,0,.18);border-radius:8px;cursor:pointer;line-height:1.4;transition:border-color .15s,background-color .15s}
.mapp-choice:hover{border-color:var(--mapp-accent,currentColor)}
.mapp-choice:has(input:checked){border-color:var(--mapp-accent,currentColor);background:color-mix(in srgb,var(--mapp-accent,currentColor) 8%,transparent)}
.mapp-choice:has(input:focus-visible){outline:2px solid var(--mapp-accent,currentColor);outline-offset:2px}
.mapp-choice input[type=checkbox],.mapp-choice input[type=radio]{appearance:none;-webkit-appearance:none;flex:0 0 auto;width:1.35rem;height:1.35rem;margin:.1rem 0 0;padding:0;font:inherit;line-height:inherit;border:2px solid rgba(0,0,0,.45);background:#fff center/72% no-repeat;cursor:pointer;transition:background-color .15s,border-color .15s}
.mapp-choice input[type=checkbox]{border-radius:5px}
.mapp-choice input[type=radio]{border-radius:50%}
.mapp-choice input:checked{border-color:var(--mapp-accent,#1d2327);background-color:var(--mapp-accent,#1d2327)}
.mapp-choice input[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.mapp-choice input[type=radio]:checked{background-image:radial-gradient(circle,#fff 0 28%,transparent 32%)}
.mapp-choice input:disabled{opacity:.5;cursor:not-allowed}
.mapp-choice:has(input:disabled){cursor:not-allowed;opacity:.8}
.mapp-choice--block{padding:.75rem .9rem}
.mapp-help{font-size:.875em;opacity:.8;margin:.25rem 0 0}
.mapp-req{color:#b32d2e}
.mapp-error{color:#b32d2e;font-size:.9em;margin:.25rem 0 0}
.mapp-field.has-error input:not([type=checkbox]):not([type=radio]),.mapp-field.has-error select,.mapp-field.has-error textarea{border-color:#b32d2e}
.mapp-section{margin:2rem 0 1rem}
.mapp-notice{padding:.8rem 1rem;border:1px solid;border-radius:10px;margin:0 0 1.25rem}
.mapp-notice p{margin:0 0 .5rem}
.mapp-notice p:last-child,.mapp-notice ul:last-child{margin-bottom:0}
.mapp-notice--ok{background:#e9f6ec;border-color:#b5dcbc;color:#1f4d27}
.mapp-notice--error{background:#fdeded;border-color:#f1b8b8;color:#7a1f1f}
.mapp-notice--info{background:#eaf2fb;border-color:#b8d1ee;color:#1f3f66}
.mapp-notice a{color:inherit}
.mapp-account-bar{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;margin-bottom:1rem}
.mapp-account-bar form{margin:0}
.mapp-link-button{background:none;border:0;padding:0;text-decoration:underline;cursor:pointer;color:inherit;font:inherit}
.mapp-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(8rem,1fr));gap:.75rem;margin:1.5rem 0}
.mapp-photos ul.mapp-help{margin:.25rem 0 1.5rem}
.mapp-photo{font-weight:400!important}
.mapp-photo img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.mapp-photo span{font-size:.875em}
.mapp-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
[hidden]{display:none!important}

.mapp-market-list{list-style:none;margin:0 0 1.5rem;padding:0}
.mapp-market-list li{margin:0 0 .5rem}
.mapp-market-item{display:flex;flex-direction:column;gap:.1rem}
.mapp-market-date{display:block;font-size:.85em;opacity:.8;text-decoration:none}
.mapp-total{font-size:1.1em;margin:1.5rem 0}
.mapp-summary-list{display:grid;grid-template-columns:max-content 1fr;gap:.35rem 1.25rem;margin:0 0 1.5rem}
.mapp-summary-list dt{font-weight:600}
.mapp-summary-list dd{margin:0}
.mapp-apps{margin:0 0 1.5rem;padding-left:1.25rem}

/* Same radius normal and focused (high specificity so themes can't square it off on focus). The block's Field radius setting overrides this. */
.mapp-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.mapp-field select,.mapp-field textarea{border-radius:6px}
/* Focus: visible ring that follows the field's rounded corners. */
.mapp-field input:not([type=checkbox]):not([type=radio]):focus,.mapp-field select:focus,.mapp-field textarea:focus{outline:2px solid var(--mapp-accent,#2271b1);outline-offset:1px}
/* Terms text above its "I agree" checkbox */
.mapp-terms{padding:.85rem 1rem;margin:0 0 .6rem;border:1px solid rgba(0,0,0,.15);border-radius:10px;background:rgba(0,0,0,.03);font-size:.95em;line-height:1.5}
/* "Your applications" card */
.mapp-apps-card{border:1px solid rgba(0,0,0,.15);border-radius:10px;padding:1rem 1.25rem;margin:0 0 2rem;background:rgba(0,0,0,.025)}
.mapp-apps-card .mapp-section{margin:0 0 .75rem;font-size:1.1em}
.mapp-apps-card .mapp-apps{list-style:none;margin:0;padding:0}
.mapp-apps-card .mapp-apps li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.25rem 1rem;padding:.6rem 0;border-top:1px solid rgba(0,0,0,.1)}
.mapp-apps-card .mapp-apps li:first-child{border-top:0;padding-top:0}
.mapp-apps-card .mapp-apps li:last-child{padding-bottom:0}
.mapp .mapp-new-vendor{margin-top:3.5rem}
.mapp-terms p{margin:0 0 .6rem}
.mapp-terms p>strong:first-child{display:block;margin-bottom:.15rem}
.mapp-terms ul{margin:.25rem 0 .6rem 1.25rem;padding:0;list-style:disc}
.mapp-terms ul ul{margin-bottom:.25rem;list-style:circle}
.mapp-terms>:last-child{margin-bottom:0}
.mapp-agreement .mapp-section{margin-top:2rem}
.mapp-terms h4{margin:1rem 0 .4rem;font-size:1em}
.mapp-terms h4:first-child{margin-top:0}
.mapp-terms--general{margin:0 0 1.5rem}
.mapp-summary-list dd{white-space:pre-line}
.mapp .mapp-notice.mapp-next{margin-bottom:2rem}
.mapp-notice.mapp-next .mapp-section{margin:0 0 .5rem}
.mapp .mapp-notice p.mapp-next__cta{margin:1.25rem 0 .5rem}
.mapp .mapp-notice p.mapp-next__cta{margin-bottom:1rem}
.mapp .mapp-notice.mapp-next{padding-bottom:1.25rem}
.mapp-portal__section{border:1px solid rgba(0,0,0,.15);border-radius:10px;padding:1rem 1.25rem;margin:0 0 1.5rem;background:rgba(0,0,0,.02)}
.mapp-portal__section .mapp-section{margin:0 0 .75rem}
.mapp-portal:not(.mapp-giveaway) .mapp-portal__section .mapp-section{font-size:1.5rem;line-height:1.25}
.mapp-portal__section h4{margin:1rem 0 .4rem}
.mapp-portal__facts{display:grid;grid-template-columns:max-content 1fr;gap:.35rem 1.25rem;margin:0 0 1rem}
.mapp-portal__facts dt{font-weight:700}
.mapp-portal__facts dd{margin:0}
.mapp-portal__text>:last-child{margin-bottom:0}
.mapp-portal__text .wp-element-button,.mapp-portal__text .mapp-button{display:inline-block;line-height:1.3;margin:.6rem 0 .35rem;vertical-align:top}
.mapp-portal__promo{display:grid;grid-template-columns:repeat(auto-fill,minmax(10rem,1fr));gap:1rem}
.mapp-portal__promo figure{margin:0}
.mapp-portal__promo img{width:100%;height:auto;border-radius:8px;display:block}
.mapp-portal__promo figcaption{margin-top:.35rem;font-size:.9em}
.mapp-portal__floor{max-width:100%;height:auto;border-radius:8px}
.mapp-portal-link{margin-left:.5rem}
.mapp-apps__main{flex:1 1 auto;display:flex;flex-direction:column;gap:.1rem}
.mapp-apps__title{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .6rem}
.mapp-status{display:inline-block;padding:.1em .6em;border-radius:999px;font-size:.8em;font-weight:600;line-height:1.5;background:rgba(0,0,0,.08);color:inherit}
.mapp-status--approved{background:#e3f4e6;color:#1d6b2e}
.mapp-status--waitlist{background:#fdf0d5;color:#8a5a00}
.mapp-apps__main .mapp-help{font-size:.85em;opacity:.8}
.mapp-apps__links{display:flex;flex-direction:column;align-items:flex-end;gap:.15rem;text-align:right}
.mapp-apps__links .mapp-portal-link{margin-left:0}
.mapp-apps__links .mapp-giveaway-status.is-done{margin-left:0}
.mapp-apps-card--plain{border:0;background:none;padding:0;border-radius:0}
.mapp-apps-card--plain .mapp-apps li:first-child{padding-top:0}
.mapp-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.5rem 0 1.25rem}
.mapp-tabs a{padding:.45rem 1rem;border:1px solid rgba(0,0,0,.2);border-radius:999px;text-decoration:none;color:inherit}
.mapp-tabs a.is-active{background:var(--mapp-accent,#1d2327);border-color:var(--mapp-accent,#1d2327);color:#fff}
.mapp-minis{border:0;padding:0;margin:0}
.mapp-minis legend{font-weight:600;padding:0;margin:0 0 .5rem}
.mapp-mini-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;margin:0 0 .75rem}
.mapp-mini-row label{display:flex;flex-direction:column;gap:.25rem;flex:1 1 12rem}
.mapp-mini-row label:nth-of-type(2){flex:0 0 6rem}
.mapp-mini-row .mapp-link-button{padding:.55rem 0}
.mapp-minis__add{margin:.25rem 0 .5rem}
.mapp-checks{border:0;padding:0;margin:0}
.mapp-checks legend{font-weight:600;padding:0;margin:0 0 .5rem}
.mapp-switch{margin:0 0 1.25rem}
.mapp-notice.mapp-charity{margin-bottom:1.5rem}
.mapp-type-list .mapp-market-date{font-weight:400}
.mapp-giveaway__photo{max-width:240px;height:auto;border-radius:8px;display:block}
.mapp-giveaway-status.is-done{margin-left:.5rem;color:#0b5d1e;font-weight:600}
.mapp-giveaway .mapp-portal__section .mapp-form{margin-top:1.25rem}
.mapp-apps-link{margin:0 0 1.25rem}
.mapp-signed-in .mapp-account-bar{margin-bottom:0;color:inherit}
.mapp-signed-in .mapp-link-button{color:inherit}
.mapp-signed-in--left .mapp-account-bar{justify-content:flex-start}
.mapp-signed-in--center .mapp-account-bar{justify-content:center}
.mapp-signed-in--right .mapp-account-bar{justify-content:flex-end}
.mapp-signed-in--stacked .mapp-account-bar{flex-direction:column;align-items:flex-start;gap:.25rem}
.mapp-signed-in--stacked.mapp-signed-in--center .mapp-account-bar{align-items:center}
.mapp-signed-in--stacked.mapp-signed-in--right .mapp-account-bar{align-items:flex-end}
.mapp-portal__title{margin:0 0 1rem}
.mapp-giveaway .mapp-portal__section{border:0;background:none;border-radius:0;padding:0;margin:0 0 1.5rem}

/* Line the box up with the first line of its label, whatever size the theme makes the text. */
.mapp-choice{align-items:flex-start}
.mapp-choice>input[type=checkbox],.mapp-choice>input[type=radio]{margin-top:.1rem}
@supports (height:1lh){.mapp-choice>input[type=checkbox],.mapp-choice>input[type=radio]{margin-top:calc((1lh - 1.35rem) / 2)}}
.mapp-choice>span,.mapp-choice>input+*{margin:0;padding:0;line-height:inherit}
/* Agreement checkboxes under the legal text: no box around them. */
.mapp-choice--plain,.mapp-choice--plain:hover,.mapp-choice--plain:has(input:checked){border:0;background:none;border-radius:0;padding:.25rem 0}
/* ".mapp-field label" (display:block) would otherwise beat ".mapp-choice" and stop the box and text sitting on one row. */
.mapp-field label.mapp-choice,label.mapp-choice{display:flex;align-items:flex-start;gap:.65rem}
/* Vendor profile: more room above each section heading. */
.mapp .mapp-profile .mapp-section{margin-top:3rem}

/* Giveaway form: several items */
.mapp-gw-item+.mapp-gw-item{margin-top:2rem}
.mapp-gw-item__title,.mapp-portal .mapp-gw-item__title{margin:0 0 .6rem;font-size:1em}
.mapp-gw-remove,.mapp-gw-add{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
.mapp-gw-remove{margin-left:.75rem;font-size:.9em;font-weight:400}
.mapp-gw-add-wrap{margin:1rem 0 1.5rem}
.mapp-gw-add{font-weight:600}

.mapp-volunteer .mapp-field>input[type=text]{margin-top:.5rem}
.mapp-volunteer .mapp-portal__text ul{margin:.25rem 0 1rem 1.25rem}

/* Fallback look for form buttons. Zero specificity (:where), so the theme's button styles and the block's Button settings always win. */
:where(.mapp-button){display:inline-block;box-sizing:border-box;cursor:pointer;padding:.7em 1.4em;border:2px solid transparent;border-radius:6px;font-family:inherit;font-size:inherit;font-weight:600;line-height:1.3;text-align:center;text-decoration:none;background-color:var(--wp--preset--color--contrast,#1d2327);color:var(--wp--preset--color--base,#fff)}
:where(.mapp-button:hover){filter:brightness(1.18)}
:where(.mapp-button:focus-visible){outline:2px solid currentColor;outline-offset:2px}
.mapp-volunteer .mapp-volunteer__before{margin-bottom:2.25rem}
.mapp-volunteer-form .mapp-button{margin-top:1.5rem}

.mapp-application-form .is-unavailable .mapp-choice,.mapp-application-form [data-unavailable] .mapp-choice{opacity:.5;cursor:not-allowed}
.mapp-application-form .mapp-no-table-note{font-style:italic}
.mapp-shared-with input[type=text]{width:100%;box-sizing:border-box}
.mapp-apps__links .mapp-button{margin:0;text-align:center;text-decoration:none}
.mapp-apps__links:has(.mapp-button){gap:.4rem}
.mapp-ballot-block .mapp-ballot__entries-row{display:flex;align-items:center;gap:.75rem}
.mapp-ballot-block .mapp-ballot__entries-row input[type=number]{max-width:6rem}
.mapp-ballot-block input[readonly]{background:#f3f3f3;color:#555}
.mapp-ballot-block .mapp-ballot__passcode{margin-top:.75rem}
.mapp-ballot-block .mapp-ballot__thanks{font-size:1.1em}
.mapp-ballot-block .mapp-ballot-choose ul{margin:.5rem 0 0 1.25rem}
.mapp-ballot-block .mapp-ballot-choose li{margin:.35rem 0}
.mapp-ballot-block .mapp-field input[type=number],.mapp-ballot-block .mapp-field input[type=password]{width:100%;box-sizing:border-box;font:inherit;font-size:1em;line-height:1.4;padding:.55em .75em}
.mapp-ballot-block .mapp-ballot__entries-row input[type=number]{width:6rem}
.mapp-ballot-block .mapp-ballot__passcode input[type=password]{max-width:16rem}
