/* Business card builder. Works with the DoorHi theme; plain enough for any theme. */
.eddm-bc { --bc-line: #D5DDD7; --bc-ink: #18201B; --bc-muted: #536058; --bc-green: #1D4A36; --bc-gold: #F5B700; color: var(--bc-ink); }
.eddm-bc [hidden] { display: none !important; }
.eddm-bc .bc-loading { color: var(--bc-muted); }
.eddm-bc .bc-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 22px; }
.eddm-bc .bc-mode-btn { text-align: left; background: #fff; border: 2px solid var(--bc-line); border-radius: 10px; padding: 16px 18px; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 4px; min-height: 48px; }
.eddm-bc .bc-mode-btn b { font-size: 19px; }
.eddm-bc .bc-mode-btn span { color: var(--bc-muted); font-size: 15px; }
.eddm-bc .bc-mode-btn[aria-pressed="true"] { border-color: var(--bc-green); box-shadow: inset 0 0 0 1px var(--bc-green); background: #F3F8F4; }
.eddm-bc .bc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.eddm-bc .bc-stage { position: sticky; top: 16px; }
.eddm-bc .bc-print { display: none; }
.eddm-bc .bc-fig { margin: 0 0 14px; }
.eddm-bc .bc-show { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 8px 24px rgba(24, 32, 27, .16), 0 1px 3px rgba(24, 32, 27, .2); background: #fff; }
.eddm-bc figcaption { font-size: 14px; color: var(--bc-muted); margin-top: 6px; font-weight: 700; }
.eddm-bc .bc-legend { font-size: 14px; color: var(--bc-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.eddm-bc .bc-legend label { display: inline-flex; gap: 6px; align-items: center; margin-right: 8px; font-weight: 700; color: var(--bc-ink); }
.eddm-bc .bc-key { display: inline-block; width: 18px; height: 0; border-top: 2px solid #00A0DC; vertical-align: middle; }
.eddm-bc .bc-key-safe { border-top: 2px dashed #E6007A; }
.eddm-bc .bc-warnings { list-style: none; padding: 0; margin: 12px 0 0; }
.eddm-bc .bc-warnings li { background: #FFF6D6; border-left: 4px solid #C98F00; padding: 8px 10px; margin-bottom: 6px; font-size: 15px; border-radius: 4px; }
.eddm-bc .bc-sec { border-top: 1px solid var(--bc-line); padding: 18px 0 6px; }
.eddm-bc .bc-sec:first-child { border-top: 0; padding-top: 0; }
.eddm-bc .bc-sec h3 { font-size: 20px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.eddm-bc .bc-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bc-green); color: #fff; font-size: 15px; flex: none; }
.eddm-bc .bc-tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eddm-bc .bc-tpl, .eddm-bc .bc-back, .eddm-bc .bc-opt, .eddm-bc .bc-font { background: #fff; border: 2px solid var(--bc-line); border-radius: 8px; padding: 8px; cursor: pointer; font: inherit; color: inherit; text-align: left; display: flex; flex-direction: column; gap: 3px; min-height: 48px; }
.eddm-bc .bc-tpl canvas { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.18); margin-bottom: 4px; }
.eddm-bc .bc-tpl b, .eddm-bc .bc-back b, .eddm-bc .bc-opt b { font-size: 15px; }
.eddm-bc .bc-tpl small, .eddm-bc .bc-back small, .eddm-bc .bc-opt small { color: var(--bc-muted); font-size: 13px; }
.eddm-bc [aria-checked="true"].bc-tpl, .eddm-bc [aria-checked="true"].bc-back, .eddm-bc [aria-checked="true"].bc-opt, .eddm-bc [aria-checked="true"].bc-font { border-color: var(--bc-green); box-shadow: inset 0 0 0 1px var(--bc-green); background: #F3F8F4; }
.eddm-bc .bc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.eddm-bc .bc-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; }
.eddm-bc .bc-fields input, .eddm-bc .bc-fields select, .eddm-bc .bc-fields textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 9px 10px; border: 1.5px solid #8C9A91; border-radius: 6px; width: 100%; box-sizing: border-box; background: #fff; }
.eddm-bc .bc-fields .bc-note, .eddm-bc .bc-fields label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.eddm-bc .bc-note { font-size: 14px; color: var(--bc-muted); margin: 6px 0; }
.eddm-bc .bc-sub { font-size: 14px; font-weight: 700; margin: 10px 0 6px; }
.eddm-bc .bc-link { background: none; border: 0; padding: 4px 0; color: #2F6690; text-decoration: underline; font: 700 14px inherit; cursor: pointer; min-height: 32px; }
.eddm-bc .bc-file { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.eddm-bc .bc-sw { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eddm-bc .bc-swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #8C9A91; cursor: pointer; padding: 0; }
.eddm-bc .bc-swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--bc-ink); }
.eddm-bc .bc-sw input[type=color] { width: 44px; height: 40px; border: 1.5px solid #8C9A91; border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.eddm-bc .bc-fonts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.eddm-bc .bc-font { text-align: center; align-items: center; font-size: 18px; justify-content: center; }
.eddm-bc .bc-backs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.eddm-bc .bc-upload .bc-up-grid { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 18px; align-items: start; }
.eddm-bc .bc-drop { display: flex; flex-direction: column; gap: 6px; border: 2px dashed #8C9A91; border-radius: 10px; padding: 18px; background: #fff; cursor: pointer; }
.eddm-bc .bc-drop b { font-size: 18px; }
.eddm-bc .bc-drop span { font-size: 14px; color: var(--bc-muted); }
.eddm-bc .bc-res { margin-top: 10px; }
.eddm-bc .bc-res-head { font-weight: 800; margin: 0 0 8px; }
.eddm-bc .bc-res-img { width: 100%; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.eddm-bc .bc-res-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.eddm-bc .bc-res-list li { padding: 6px 0 6px 10px; border-left: 4px solid var(--bc-line); margin-bottom: 4px; }
.eddm-bc .bc-pass { color: #1F7A3D; } .eddm-bc li.bc-pass { border-color: #1F7A3D; color: inherit; }
.eddm-bc .bc-warn-txt, .eddm-bc .bc-res-head.bc-warn { color: #8A5A00; } .eddm-bc li.bc-warn { border-color: #C98F00; }
.eddm-bc .bc-fail { color: #A32020; } .eddm-bc li.bc-fail { border-color: #A32020; color: inherit; }
.eddm-bc .bc-spec { background: #F3F6F3; border-radius: 10px; padding: 16px; font-size: 15px; }
.eddm-bc .bc-spec h3 { margin: 0 0 8px; font-size: 18px; }
.eddm-bc .bc-spec ul { padding-left: 18px; margin: 0 0 12px; }
.eddm-bc .bc-spec li { margin-bottom: 6px; }
.eddm-bc .bc-order { margin-top: 26px; border-top: 2px solid var(--bc-line); padding-top: 6px; max-width: 900px; }
.eddm-bc .bc-qty { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.eddm-bc .bc-qty .bc-opt { position: relative; }
.eddm-bc .bc-qty .bc-opt span { font-size: 20px; font-weight: 800; }
.eddm-bc .bc-qty .bc-opt i { position: absolute; top: -10px; right: 8px; background: var(--bc-gold); font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.eddm-bc .bc-paper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.eddm-bc .bc-paper .bc-opt span { font-weight: 700; font-size: 14px; color: var(--bc-green); }
.eddm-bc .bc-proof-imgs { display: flex; gap: 14px; flex-wrap: wrap; }
.eddm-bc .bc-proof-imgs figure { margin: 0; flex: 1 1 260px; max-width: 420px; }
.eddm-bc .bc-proof-imgs canvas, .eddm-bc .bc-proof-imgs img { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.eddm-bc .bc-alert { background: #FDECEC; border-left: 4px solid #A32020; padding: 10px 12px; border-radius: 4px; font-weight: 600; }
.eddm-bc .bc-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; margin: 16px 0 10px; font-size: 16px; }
.eddm-bc .bc-check input { width: 22px; height: 22px; margin: 0; flex: none; }
.eddm-bc .bc-total { font-size: 16px; margin: 8px 0 12px; }
.eddm-bc .bc-total b { font-size: 28px; margin-right: 6px; }
.eddm-bc .bc-order .btn[disabled] { opacity: .5; cursor: not-allowed; }
.eddm-bc .bc-msg { min-height: 1.3em; font-weight: 600; }
@media (max-width: 900px) {
  .eddm-bc .bc-grid { grid-template-columns: 1fr; }
  .eddm-bc .bc-stage { position: sticky; top: 0; z-index: 2; background: #fff; padding: 8px 0 4px; }
  .eddm-bc .bc-stage .bc-fig + .bc-fig, .eddm-bc .bc-stage .bc-legend { display: none; }
  .eddm-bc .bc-upload .bc-up-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .eddm-bc .bc-mode { grid-template-columns: 1fr; }
  .eddm-bc .bc-fields { grid-template-columns: 1fr; }
  .eddm-bc .bc-qty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eddm-bc .bc-paper, .eddm-bc .bc-backs { grid-template-columns: 1fr; }
}
