/* Generated from css/eid-greeting.css by tools/rtl/gen.js (rtlcss) — do not edit */
/* Eid greetings by e-mail (eid.php, js/eid.js) */
.ed-page { max-width: 1080px; }
.ed-head { margin: 6px 0 22px; }
.ed-kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--t-accent); }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.ed-form { display: grid; gap: 18px; padding: 22px; border-radius: 20px; background: var(--t-card); border: 1px solid var(--t-border); }
.ed-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.ed-step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 1.02rem; color: var(--t-text); }
.ed-step legend span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--t-accent); color: #fff; font-size: 13px; }

.ed-eids { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ed-eid { position: relative; cursor: pointer; }
.ed-eid input, .ed-msg input { position: absolute; opacity: 0; pointer-events: none; }
.ed-eid span { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--t-border); background: var(--t-bg); transition: border-color .2s, background .2s; }
.ed-eid b { font-size: 1.02rem; color: var(--t-text); }
.ed-eid small { color: var(--t-text-secondary); font-size: 13.5px; }
.ed-eid input:checked + span, .ed-msg input:checked + span { border-color: var(--t-accent); background: rgba(var(--t-accent-rgb), 0.09); }
.ed-eid input:focus-visible + span, .ed-msg input:focus-visible + span { outline: 2px solid var(--t-accent); outline-offset: 2px; }

.ed-msgs { display: grid; gap: 8px; }
.ed-msgs[hidden] { display: none; }
.ed-msg { position: relative; cursor: pointer; }
.ed-msg span { display: block; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--t-border); background: var(--t-bg); font-size: 14.5px; line-height: 1.5; color: var(--t-text); transition: border-color .2s, background .2s; }

.ed-designs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; max-width: 520px; }
.ed-designs button { padding: 0; aspect-ratio: 1; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; overflow: hidden; line-height: 0; }
.ed-designs img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.ed-designs button[aria-checked="true"] { border-color: var(--t-accent); box-shadow: 0 0 0 2px rgba(var(--t-accent-rgb), .25); }

.ed-in { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--t-border); background: var(--t-bg); color: var(--t-text); font: inherit; font-size: 15px; }
.ed-in:focus { outline: 2px solid rgba(var(--t-accent-rgb), .5); outline-offset: 0; border-color: var(--t-accent); }
#ed-from { max-width: 320px; }
.ed-people { display: grid; gap: 8px; }
.ed-person { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) 36px; gap: 8px; }
.ed-rm { border: 1px solid var(--t-border); border-radius: 10px; background: var(--t-bg); color: var(--t-text-secondary); font-size: 20px; line-height: 1; cursor: pointer; }
.ed-rm:hover { color: #b4532a; border-color: rgba(180, 83, 42, .5); }
.ed-people-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.ed-people-foot small { color: var(--t-text-secondary); font-size: 13px; }
.ed-add { border: 0; background: none; color: var(--t-accent); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; padding: 4px 0; }
.ed-add[hidden] { display: none; }

.ed-when { padding: 14px 16px; border-radius: 14px; background: rgba(var(--t-accent-rgb), 0.08); }
.ed-when p { margin: 0; font-weight: 700; color: var(--t-text); }
.ed-when small { display: block; margin-top: 4px; color: var(--t-text-secondary); font-size: 13px; }
.ed-err { margin: 0; color: #b4532a; font-size: 14px; font-weight: 600; }
.ed-ok { margin: 0; color: #1f7a4d; font-size: 15px; font-weight: 700; }
.ed-err[hidden], .ed-ok[hidden] { display: none; }
.ed-go { justify-self: start; padding: 13px 28px; border: 0; border-radius: 999px; background: var(--t-accent); color: #fff; font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; }
.ed-go:disabled { opacity: .6; cursor: default; }
.ed-go:not(:disabled):hover { filter: brightness(1.07); }

.ed-preview { position: sticky; top: 84px; }
.ed-pv-h { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--t-text-secondary); text-transform: uppercase; letter-spacing: .08em; }
.ed-mail { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--t-border); box-shadow: 0 18px 40px -26px rgba(40, 30, 20, .45); }
.ed-mail img { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #eee6da; }
.ed-mail-body { padding: 16px 18px 18px; color: #2b2420; }
.ed-mail-intro { margin: 0 0 4px; font-size: 13px; color: #6b5f55; }
.ed-mail-msg { margin: 0 0 10px; font-size: 16px; line-height: 1.45; font-weight: 700; }
.ed-mail-from { margin: 0; font-size: 15px; }

.ed-mine { margin: 30px 0 10px; }
.ed-mine[hidden] { display: none; }
.ed-mine h2 { font-size: 1.2rem; margin: 0 0 10px; }
.ed-verify { padding: 10px 14px; border-radius: 12px; background: rgba(180, 120, 20, .12); color: var(--t-text); font-size: 14px; }
.ed-verify[hidden] { display: none; }
#ed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ed-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--t-border); background: var(--t-card); }
.ed-it-main small { display: block; margin-top: 3px; color: var(--t-text-secondary); font-size: 13px; }
.ed-it-side { display: flex; align-items: center; gap: 10px; }
.ed-it-side em { font-style: normal; font-size: 13px; color: var(--t-text-secondary); }
.ed-it-side button { border: 1px solid var(--t-border); border-radius: 999px; background: none; color: var(--t-text); padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ed-item.is-cancelled { opacity: .6; }
.ed-item.is-sent em { color: #1f7a4d; }

@media (max-width: 900px) {
    .ed-grid { grid-template-columns: 1fr; }
    .ed-preview { position: static; order: -1; max-width: 380px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
    .ed-form { padding: 16px; }
    .ed-person { grid-template-columns: 1fr 36px; }
    .ed-person input:first-child { grid-column: 1 / -1; }
    .ed-designs { grid-template-columns: repeat(4, 1fr); }
}
.ed-ok a, .ed-mine h2 a { color: var(--t-accent); font-weight: 600; font-size: 14px; text-decoration: none; margin-inline-start: 6px; }
.ed-mine h2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
/* round 243: categories of greetings, the own text, the e-mail preview without repeating the card */
.ed-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ed-cat { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--t-border); background: var(--t-bg); color: var(--t-text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.ed-cat[hidden] { display: none; }
.ed-cat:hover { border-color: var(--t-accent); }
.ed-cat[aria-selected="true"] { background: var(--t-accent); border-color: var(--t-accent); color: #fff; }
.ed-cat[data-cat="own"] { border-style: dashed; }
.ed-cat[data-cat="own"][aria-selected="true"] { border-style: solid; }
.ed-own[hidden] { display: none; }
.ed-own textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.ed-own small { display: block; margin-top: 6px; color: var(--t-text-secondary); font-size: 12.5px; }
.ed-mail-intro { margin: 0 0 8px !important; font-size: 15px !important; font-weight: 700; color: #2b2420 !important; }
.ed-mail-msg { font-weight: 400 !important; font-size: 15.5px !important; line-height: 1.6 !important; white-space: pre-line; }
.ed-mail-from { color: #6b5f55; }
