/* Δικαίωμα Υπαναχώρησης — front end. Neutral, inherits the theme's fonts and
   colours; !important only where themes restyle every button/input. */
.dbw { --dbw-text: inherit; --dbw-muted: #6b7280; --dbw-line: #e5e7eb; --dbw-accent: #111827; max-width: 760px; margin: 0 auto; }
.dbw *, .dbw *::before, .dbw *::after { box-sizing: border-box; }

.dbw-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 20px !important; padding: 0 !important; counter-reset: none; }
.dbw-steps li { flex: 1 1 0; display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 8px 10px; border-radius: 10px; background: #f3f4f6; color: var(--dbw-muted); font-size: .875em; font-weight: 600; }
.dbw-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; font-size: .93em; }
.dbw-steps li.is-current { background: var(--dbw-accent); color: #fff; }
.dbw-steps li.is-current span { color: var(--dbw-accent); }
.dbw-steps li.is-done { color: #065f46; background: #d1fae5; }

.dbw-intro { margin: 0 0 16px; }
.dbw-card { border: 1px solid var(--dbw-line); border-radius: 12px; padding: 18px 20px; margin: 0 0 16px; background: #fff; }
.dbw-card h3 { margin: 0 0 12px !important; font-size: 1.1em; }
.dbw-row { margin: 0 0 12px !important; display: flex; flex-direction: column; gap: 6px; }
.dbw-row label { font-weight: 600; font-size: .875em; }
.dbw-row input, .dbw-row select, .dbw-row textarea { width: 100%; max-width: 100%; min-height: 44px; }
/* Fallback for themes that do not style form fields (e.g. block themes such as
   Twenty Twenty-Five). :where() = zero specificity, so any theme rule wins. */
:where(.dbw) :where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
    font: inherit; color: inherit; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; background-color: #fff;
}
.dbw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.dbw-btn, a.dbw-button, .dbw-button {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
    min-height: 46px; padding: 10px 22px !important; border: 2px solid var(--dbw-accent) !important; border-radius: 10px !important;
    background: var(--dbw-accent) !important; color: #fff !important; font-weight: 600 !important; font-size: .9375em !important;
    text-decoration: none !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.2 !important; cursor: pointer; box-shadow: none !important;
}
.dbw-btn:hover, .dbw-button:hover { filter: brightness(1.15); }
.dbw-btn-secondary { background: transparent !important; color: var(--dbw-accent) !important; min-height: 38px; padding: 6px 14px !important; }
.dbw-btn:focus-visible, .dbw-button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

.dbw-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 0 !important; }
.dbw-actions a:not(.dbw-btn) { color: var(--dbw-muted); }

.dbw-alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; background: #f3f4f6; border-left: 4px solid #9ca3af; }
.dbw-alert-error { background: #fef2f2; border-left-color: #dc2626; color: #991b1b; }
.dbw-muted { color: var(--dbw-muted); font-size: .875em; }
.dbw-orderhead { margin: 0 0 12px; font-size: .9375em; }

.dbw-orders { list-style: none; margin: 0 !important; padding: 0 !important; }
.dbw-orders li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--dbw-line); margin: 0 !important; }
.dbw-orders li:first-child { border-top: 0; }

.dbw-items { list-style: none; margin: 0 !important; padding: 0 !important; }
.dbw-items li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--dbw-line); margin: 0 !important; }
.dbw-items li:first-child { border-top: 0; }
.dbw-items li.is-disabled { opacity: .55; }
.dbw-items img, .dbw-noimg { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 56px; background: #f3f4f6; }
.dbw-item-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dbw-item-info small { color: var(--dbw-muted); }
.dbw-note { color: #92400e !important; }
.dbw-qty { display: flex; flex-direction: column; gap: 4px; font-size: .75em; color: var(--dbw-muted); }
.dbw-qty select { min-width: 72px; min-height: 40px; }
.dbw-qty-fixed { font-weight: 600; }
.dbw-items-compact li { padding: 6px 0; display: block; }
.dbw-q { font-weight: 700; }

.dbw-statement { border-color: var(--dbw-accent); }
.dbw-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 !important; }
.dbw-dl dt { color: var(--dbw-muted); }
.dbw-dl dd { margin: 0 !important; }

.dbw-done { text-align: center; }
.dbw-done-icon { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: #d1fae5; color: #065f46; display: flex; align-items: center; justify-content: center; }

.dbw-order-box { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--dbw-line); border-radius: 12px; }


@media (max-width: 600px) {
    .dbw-steps li { font-size: .75em; padding: 6px; }
    .dbw-card { padding: 14px; }
    .dbw-items li { flex-wrap: wrap; }
    .dbw-dl { grid-template-columns: 1fr; gap: 2px; }
    .dbw-dl dd { margin-bottom: 8px !important; }
}


/* "What happens next" */
.dbw-next-steps { margin: 0 0 8px 20px !important; padding: 0 !important; }
.dbw-next-steps li { margin: 0 0 6px !important; }
.dbw-next-link { margin: 8px 0 0 !important; }
