/* The reviewed share modal, scoped to the crock pilot. */
.oh-email-panel { box-sizing: border-box; width: min(760px,94vw); max-width: 94vw; max-height: 92vh; max-height: 92dvh; margin: auto; padding: 28px; border: 0; background: #19254f; color: white; overflow-y: auto; }
.oh-email-panel::backdrop { background: #101323d9; }
.oh-email-panel:not([open]) { display: none; }
html.oh-email-open { overflow: hidden; }
.oh-email-preview[hidden] { display: none; }
.oh-email-header { position: sticky; top: -28px; z-index: 2; margin: -28px 0 22px; padding: 28px 56px 18px 0; background: #19254f; }
.oh-email-panel h2 { margin: 0 0 8px; color: white; font: inherit; font-size: 28px; font-weight: 500; line-height: 1.3; }
.oh-email-panel h2:focus { outline: none; }
.oh-email-header p { margin: 0; font-size: 18px; line-height: 1.4; }
.oh-email-close { position: absolute; top: 18px; right: -8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 2px; border: 0; background: none; cursor: pointer; }
.oh-email-close img { display: block; width: 40px; height: 40px; margin: 0; }
.oh-email-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.oh-email-form label { display: block; margin: 0; font-size: 16px; font-weight: 400; line-height: 1.4; }
.oh-email-form label span { font-size: 13px; }
.oh-email-form input:not([type=checkbox]), .oh-email-form textarea { display: block; width: 100%; margin-top: 7px; padding: 10px 12px; min-height: 44px; border: 1px solid #9da2b1; border-radius: 0; background: white; color: #19254f; font: inherit; font-size: 16px; }
.oh-email-form .oh-email-message { margin-top: 20px; }
.oh-email-form .oh-email-attachment { display: flex; align-items: center; gap: 10px; margin-top: 18px; min-height: 44px; }
.oh-email-attachment input { width: 19px; height: 19px; accent-color: #19254f; flex: 0 0 auto; }
.oh-email-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 18px; }
.oh-email-buttons .btn { min-height: 44px; padding: 10px 20px; border-radius: 0; font-size: 16px; }
.oh-email-buttons .btn-primary { background: white; border-color: white; color: #19254f; }
.oh-email-buttons .btn-primary:hover, .oh-email-buttons .btn-primary:focus { background: transparent; border-color: white; color: white; }
.oh-email-panel .oh-email-preview-button { color: white; }
.oh-email-panel .oh-email-local-note { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: #ffffffbf; }
.oh-email-result { margin: 16px 0 0; font-size: 16px; line-height: 1.5; }
.oh-email-result:empty { display: none; }
.oh-email-result.is-error { color: #ffddc5; }
.oh-email-preview { margin-top: 26px; background: #fff; color: #19254f; border: 1px solid #ccc; }
.oh-email-envelope { padding: 18px; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.4; }
.oh-email-envelope p { margin: 8px 0; font-size: 14px; overflow-wrap: anywhere; }
.oh-email-envelope button { font-family: inherit; font-size: 14px; }
.oh-email-preview iframe { display: block; width: 100%; height: 760px; border: 0; background: white; }
.oh-email-panel :focus-visible { outline: 2px solid #e4cf9e; outline-offset: 4px; }
.oh-email-toggle:focus-visible { outline: 2px solid #19254f; outline-offset: 4px; }
.oh-email-buttons button:disabled { opacity: .6; cursor: wait; }
.oh-crock-share-toggle[hidden], #oh-crock-share [hidden] { display: none !important; }
#oh-crock-share .oh-email-preview-button { appearance: none; border: 0; background: none; color: white; padding: 0; min-height: 44px; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
#oh-crock-share .oh-email-fields label:first-child { grid-column: 1 / -1; }
#oh-crock-share .oh-email-result.is-success { margin: 0; padding: 16px 18px; border: 1px solid #ffffff59; }
#oh-crock-share .oh-email-challenge:not(:empty) { margin-top: 10px; }
#oh-crock-share .oh-email-preview iframe { height: min(60vh, 620px); }
@media(max-width: 540px) { .oh-email-fields { grid-template-columns: 1fr; } .oh-email-panel { padding: 20px; } .oh-email-header { top: -20px; margin-top: -20px; padding-top: 20px; } .oh-email-close { top: 10px; } }
