/* Scoped to this form; the portal keeps its previous palette. */
dialog.sale-form-dialog{width:min(600px,calc(100vw - 28px));padding:28px;max-height:calc(100dvh - 28px);overflow-y:auto;background:#fff;color:#081638}
.sale-form-dialog .sale-form-title{padding-right:38px;font:700 26px/1.2 Georgia,'Times New Roman',serif;letter-spacing:-.3px;margin:0 0 22px;color:#081638}
.sale-form-dialog .sale-form-available{margin:0 0 23px;line-height:1.6;font-size:15px;background:none;border:0;padding:0}
.sale-form-available strong{font-weight:700;overflow-wrap:anywhere}
#educational-sale-form{margin:0}
#educational-sale-form>label:first-child{display:block;margin-bottom:8px;font-size:15px;font-weight:700}
.sale-form-dialog #educational-sale-form #educational-quantity{margin:0 0 22px;min-height:56px;border:2px solid #173daf;border-radius:14px;box-shadow:none;background-color:#fff;color:#081638}
.sale-form-dialog #educational-quantity:focus{outline:2px solid #85c8ff;outline-offset:2px}
#educational-sale-form .sale-form-ack{display:flex;gap:12px;align-items:flex-start;font-size:14px;font-weight:400;line-height:1.6;margin:0 0 22px}
#educational-sale-form .sale-form-ack input{width:20px;height:20px;flex:0 0 20px;margin:1px 0 0;accent-color:#173daf;padding:0;box-shadow:none}
.sale-form-dialog #educational-sale-form button[type=submit]{width:100%;min-height:50px;background:#173daf;color:#fff;border-radius:12px;font-size:17px}
#educational-sale-form .educational-error:empty{display:none}
.sale-form-dialog>p:last-child{margin:12px 0 0}
.sale-form-dialog>p:last-child>button.secondary{width:100%;min-height:48px;border-radius:12px;background:#eaf1ff;color:#173daf;font-size:17px}
.sale-form-dialog .responsive-dialog-close{background:#eaf1ff;color:#173daf;border-radius:12px;margin-top:-14px;margin-right:-14px}
.client-dark-mode dialog.sale-form-dialog{color:#e3ebf7}.client-dark-mode .sale-form-dialog .sale-form-title{color:#e3ebf7}
@media(max-width:440px){dialog.sale-form-dialog{padding:22px}.sale-form-dialog .sale-form-title{font-size:21px}.sale-form-dialog .sale-form-available{font-size:13px}.sale-form-dialog .sale-form-ack{font-size:13px}}

.wallet-buttons:has(.sale-blocked-notice){flex-wrap:wrap}
#educational-sale-notice.sale-blocked-notice{flex:1 1 100%;margin:12px 0 0;padding:16px 18px;border:1px solid #f4a4a4;border-left:5px solid #c62828;border-radius:12px;background:#fff0f0;color:#991b1b!important;font-size:14px;font-weight:650;line-height:1.65;box-shadow:0 3px 12px #991b1b0a}
#educational-sale-form .educational-error:not(:empty){padding:12px 14px;border:1px solid #f4a4a4;border-radius:10px;background:#fff0f0;color:#991b1b;font-weight:600;line-height:1.6}
.client-dark-mode #educational-sale-notice.sale-blocked-notice,.client-dark-mode #educational-sale-form .educational-error:not(:empty){background:#3b2028;color:#ffc7c7!important;border-color:#98515d;border-left-color:#ff8080}

.sale-blocked-alert{margin:16px 0;padding:18px;border:1px solid #f4a4a4;border-left:5px solid #c62828;border-radius:12px;background:#fff0f0;color:#991b1b;font-size:15px;font-weight:650;line-height:1.65}
.client-dark-mode .sale-blocked-alert{background:#3b2028;color:#ffc7c7;border-color:#98515d;border-left-color:#ff8080}

dialog.sale-warning-dialog{width:min(440px,calc(100vw - 32px));padding:25px;border-radius:18px}dialog.sale-warning-dialog h2{font-size:21px;line-height:1.3;padding-right:28px}dialog.sale-warning-dialog>p:last-child>button{min-width:110px}
