#rothe-order{--rothe-primary:#166534;--rothe-secondary:#e2e8f0;--rothe-category:#f8fafc;--rothe-text:#1f2937;--rothe-product-size:16px;--rothe-category-size:17px;--rothe-input-size:16px;--rothe-notes-size:16px;--rothe-title-size:32px;--rothe-card-radius:14px;--rothe-button-radius:12px;max-width:760px;margin:0 auto;font-family:inherit;color:var(--rothe-text)}#rothe-order *{box-sizing:border-box}.rothe-header{text-align:center;margin-bottom:18px}.rothe-header h2{margin:0 0 6px;font-size:var(--rothe-title-size);line-height:1.15}.rothe-header p{margin:0;color:#64748b}.rothe-card{background:#fff;border:1px solid #e2e8f0;border-radius:var(--rothe-card-radius);padding:16px;margin:12px 0;box-shadow:0 2px 8px rgba(15,23,42,.05)}.rothe-customer label,.rothe-notes label{display:block;font-weight:700;margin-bottom:8px}.rothe-customer-row{display:flex;gap:8px}.rothe-customer-row input{flex:1;min-width:0}.rothe-customer input,.rothe-qty,.rothe-unit,.rothe-notes textarea{font:inherit;border:1px solid #cbd5e1;border-radius:10px;background:#fff}.rothe-customer input{padding:13px 14px;font-size:var(--rothe-input-size)}.rothe-info{width:46px;height:46px;flex:0 0 46px;border:0;border-radius:50%;background:var(--rothe-secondary);color:#334155;font-weight:800;font-size:18px;cursor:pointer}.rothe-info-pop{display:none;margin-top:10px;padding:12px 13px;background:#f8fafc;border-left:4px solid var(--rothe-primary);border-radius:8px;line-height:1.5;font-size:14px}.rothe-info-pop.open{display:block}.rothe-category{margin:10px 0;border:1px solid #dbe3ec;border-radius:13px;overflow:hidden;background:#fff}.rothe-category-toggle{width:100%;min-height:54px;padding:14px 15px;border:0;background:var(--rothe-category);display:flex;align-items:center;justify-content:space-between;font:inherit;font-weight:800;font-size:var(--rothe-category-size);text-align:left;cursor:pointer}.rothe-plus{font-size:25px;line-height:1;font-weight:400}.rothe-category-body{padding:0 12px 8px}.rothe-product{padding:13px 3px;border-bottom:1px solid #eef2f7}.rothe-product:last-child{border-bottom:0}.rothe-product-name{font-size:var(--rothe-product-size);font-weight:600;line-height:1.35;margin-bottom:8px}.rothe-artnr{display:inline-block;color:#64748b;font-size:12px;font-weight:500;margin-right:7px}.rothe-input-row{display:flex;gap:8px}.rothe-qty{width:48%;min-height:46px;padding:10px 11px;font-size:var(--rothe-input-size)}.rothe-unit{width:52%;min-height:46px;padding:10px 11px;font-size:var(--rothe-input-size)}.rothe-notes textarea{width:100%;min-height:120px;padding:12px;resize:vertical;font-size:var(--rothe-notes-size)}.rothe-summary h3{margin:0 0 10px}.rothe-summary-line{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #eef2f7}.rothe-summary-line:last-child{border-bottom:0}.rothe-summary-name{flex:1}.rothe-summary-qty{font-weight:700;white-space:nowrap}.rothe-actions{display:flex;gap:10px;margin-top:14px}.rothe-btn{width:100%;min-height:52px;border:0;border-radius:var(--rothe-button-radius);padding:13px 16px;font:inherit;font-weight:800;cursor:pointer}.rothe-btn-primary{background:var(--rothe-primary);color:#fff}.rothe-btn-secondary{background:var(--rothe-secondary);color:#0f172a}.rothe-status{margin-top:12px;text-align:center;font-weight:700}.rothe-status.success{color:var(--rothe-primary)}.rothe-status.error{color:#b91c1c}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:700px){.rothe-category-body{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.rothe-product{min-width:0}.rothe-actions{justify-content:flex-end}.rothe-btn{max-width:300px}}
.rothe-header h2{color:var(--rothe-title-color)}
.rothe-header p{color:var(--rothe-subtitle-color)}
.rothe-product-name{display:flex;align-items:center;gap:7px}
.rothe-product-info{width:24px;height:24px;flex:0 0 24px;border:1px solid #cbd5e1;border-radius:50%;background:#e57373;color:#fff;font-size:13px;font-weight:800;line-height:1;cursor:pointer;padding:0}
.rothe-product-detail{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:99999;display:flex;align-items:center;justify-content:center;padding:18px}
.rothe-product-detail[hidden]{display:none}
.rothe-product-detail-inner{position:relative;width:min(100%,460px);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:20px;box-shadow:0 20px 60px rgba(15,23,42,.25)}
.rothe-detail-close{position:absolute;right:10px;top:10px;width:38px;height:38px;border:0;border-radius:50%;background:#f1f5f9;font-size:24px;line-height:1;cursor:pointer}
.rothe-product-image{display:block;width:400px;max-width:100%;height:400px;object-fit:cover;margin:0 auto 16px;border-radius:12px}
.rothe-product-detail h3{margin:0 40px 10px 0;font-size:22px}
.rothe-product-info-text{font-size:16px;line-height:1.55;white-space:normal}

.rothe-item-instruction-label{display:block;margin:16px 0 7px;font-weight:700;font-size:15px}.rothe-item-instruction{display:block;width:100%;min-height:90px;padding:11px 12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;resize:vertical}.rothe-item-instruction-save{width:100%;min-height:46px;margin-top:10px;border:0;border-radius:10px;background:var(--rothe-primary);color:#fff;font:inherit;font-weight:800;cursor:pointer}.rothe-summary-instruction{margin-top:4px;font-size:14px;line-height:1.4;font-weight:400;color:#475569}

.rothe-customer-confirm{width:100%;min-height:44px;margin-top:8px;padding:10px 14px;border:0;border-radius:10px;background:var(--rothe-secondary);color:#334155;font:inherit;font-weight:700;cursor:pointer}
.rothe-customer-confirm:disabled{opacity:.6;cursor:wait}
.rothe-my-products{margin:10px 0 18px}

#rothe-order .rothe-fulfilment{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
#rothe-order .rothe-fulfilment-field{min-width:0;display:flex;flex-direction:column;justify-content:flex-end;gap:8px}
#rothe-order .rothe-fulfilment-field label{display:block;font-weight:700;margin:0;line-height:1.35}
#rothe-order .rothe-fulfilment-field input,#rothe-order .rothe-fulfilment-field select{width:100%;min-width:0;min-height:46px;padding:10px;font:inherit;font-size:var(--rothe-input-size);color:var(--rothe-text);background:#fff;border:1px solid #cbd5e1;border-radius:10px}
#rothe-order .rothe-fulfilment-field :focus-visible{outline:2px solid var(--rothe-primary);outline-offset:2px}
#rothe-order .rothe-summary-notes{white-space:pre-wrap;overflow-wrap:anywhere}
#rothe-order .rothe-receipt-dialog{color:var(--rothe-text);font:inherit;width:680px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:16px;box-shadow:0 20px 60px rgba(15,23,42,.3);background:#fff;overflow:hidden}
#rothe-order .rothe-receipt-dialog[open]{display:flex;flex-direction:column;position:fixed;inset:0;margin:auto;z-index:100000}
#rothe-order .rothe-receipt-dialog:not([open]){display:none}
#rothe-order .rothe-receipt-dialog::backdrop{background:rgba(15,23,42,.6)}
#rothe-order .rothe-receipt-header{position:relative;flex-shrink:0;padding:24px 60px 20px 24px;border-bottom:1px solid #e2e8f0}
#rothe-order .rothe-receipt-header h2{margin:0;font-size:24px;line-height:1.25;color:var(--rothe-primary)}
#rothe-order .rothe-receipt-close{position:absolute;top:15px;right:12px;width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;font:inherit;font-size:26px;background:#f1f5f9;color:#334155;cursor:pointer}
#rothe-order .rothe-receipt-content{padding:20px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
#rothe-order .rothe-receipt-company{margin:0 0 16px;font-weight:700}
#rothe-order .rothe-receipt-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:0 0 22px;padding:16px;background:#f8fafc;border-radius:10px}
#rothe-order .rothe-receipt-meta dt{font-size:13px;font-weight:400;color:#64748b;margin:0 0 4px}
#rothe-order .rothe-receipt-meta dd{margin:0;font-weight:600;overflow-wrap:anywhere}
#rothe-order .rothe-receipt-content h3{font-size:17px;margin:20px 0 8px;line-height:1.4}
#rothe-order .rothe-receipt-items .rothe-summary-name{min-width:0;overflow-wrap:anywhere}
#rothe-order .rothe-receipt-items .rothe-summary-instruction,#rothe-order .rothe-receipt-notes{white-space:pre-wrap;overflow-wrap:anywhere}
#rothe-order .rothe-receipt-notes{margin:0;font-size:15px;line-height:1.5}
#rothe-order .rothe-receipt-footer{flex-shrink:0;display:flex;flex-wrap:wrap;gap:10px;padding:16px 24px;border-top:1px solid #e2e8f0;background:#fff}
#rothe-order .rothe-receipt-footer .rothe-btn{flex:1;min-width:150px;max-width:none;font-size:15px}
#rothe-order .rothe-receipt-save-status{flex:0 0 100%;margin:0;font-size:13px;line-height:1.4;color:#475569}
#rothe-order .rothe-receipt-save-status:empty{display:none}
#rothe-order .rothe-receipt-dialog button:focus-visible,#rothe-receipt-reopen:focus-visible{outline:2px solid var(--rothe-primary);outline-offset:2px}
#rothe-order .rothe-receipt-save:disabled{opacity:.65;cursor:wait}
#rothe-receipt-reopen{display:block;margin:14px auto}
@media(max-width:480px){#rothe-order .rothe-fulfilment{gap:10px}#rothe-order .rothe-fulfilment-field label{font-size:14px}#rothe-order .rothe-receipt-header{padding:20px 54px 16px 16px}#rothe-order .rothe-receipt-header h2{font-size:20px}#rothe-order .rothe-receipt-content{padding:16px}#rothe-order .rothe-receipt-footer{padding:12px 16px}#rothe-order .rothe-receipt-footer .rothe-btn{min-width:100%;min-height:44px;padding:10px}#rothe-order .rothe-receipt-items .rothe-summary-qty{white-space:normal;max-width:38%;text-align:right}}
.rothe-product-search{position:relative;width:100%;max-width:350px;margin:0 0 13px}.rothe-product-search-field{position:relative;display:flex;align-items:center;min-height:40px;padding:0 11px;border:1px solid #fff;border-radius:10px;background:#fff;box-shadow:0 0 0 1px #dbe3ec;transition:box-shadow .15s ease}.rothe-product-search-field:focus-within{box-shadow:0 0 0 2px rgba(22,101,52,.25)}.rothe-search-icon{width:16px;height:16px;flex:0 0 16px;margin-right:7px;fill:none;stroke:#64748b;stroke-width:2;stroke-linecap:round}.rothe-product-search-field input{width:100%;min-width:0;border:0!important;outline:0;background:transparent;font:inherit;font-size:14px;color:var(--rothe-text);padding:8px 0}.rothe-product-search-field input::placeholder{color:#64748b;opacity:1}.rothe-product-search-field input::-webkit-search-cancel-button{display:none}.rothe-product-search-suggestions{position:absolute;z-index:100;top:calc(100% + 5px);left:0;right:0;overflow:hidden;border:1px solid #dbe3ec;border-radius:10px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.13)}.rothe-product-search-option{display:block;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #eef2f7;background:#fff;color:var(--rothe-text);font:inherit;font-size:14px;line-height:1.35;text-align:left;cursor:pointer}.rothe-product-search-option:last-child{border-bottom:0}.rothe-product-search-option:hover,.rothe-product-search-option[aria-selected="true"]{background:#f1f5f9;color:#0f172a}.rothe-search-highlight{animation:rothe-search-flash 1.8s ease-out}@keyframes rothe-search-flash{0%,50%{background:#fef3c7;box-shadow:inset 3px 0 #f59e0b}100%{background:transparent;box-shadow:inset 0 0 transparent}}@media(max-width:420px){.rothe-product-search{max-width:none}}

/* Hidden must override the desktop grid layout as well as theme styles. */
#rothe-order .rothe-category-body[hidden]{display:none!important}
#rothe-order .rothe-customer-name{margin:8px 0 0;font-weight:700;overflow-wrap:anywhere}
#rothe-order .rothe-customer-name[hidden]{display:none!important}
/* Kompakte Darstellung bei unveränderten Schriftgrößen. */
#rothe-order .rothe-category{margin:5px 0}
#rothe-order .rothe-category-toggle{min-height:40px;padding:7px 12px}
#rothe-order .rothe-category-body{padding:0 12px 4px}
#rothe-order .rothe-product{padding:8px 3px}
#rothe-order .rothe-product-name{margin-bottom:5px}
#rothe-order .rothe-qty,#rothe-order .rothe-unit{min-height:38px;padding:6px 9px}
#rothe-order .rothe-fulfilment{gap:10px}
#rothe-order .rothe-fulfilment-field{gap:5px}
#rothe-order .rothe-fulfilment-field input,#rothe-order .rothe-fulfilment-field select{min-height:38px;padding:6px 9px}

/* Keep native date controls inside their column, including mobile Safari. */
#rothe-order .rothe-fulfilment-field input,
#rothe-order .rothe-fulfilment-field select{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  color:#000!important;
  -webkit-text-fill-color:#000!important;
  background-color:#fff;
  color-scheme:light;
}
/* Labels retain the site's existing gold text styling; only field values are black. */
#rothe-order .rothe-fulfilment-field option{color:#000}
#rothe-order #rothe-fulfilment-date{
  -webkit-appearance:none;
  appearance:none;
  min-inline-size:0;
}
#rothe-order #rothe-fulfilment-date::-webkit-date-and-time-value{
  min-width:0;
  text-align:left;
  color:#000;
  -webkit-text-fill-color:#000;
}
#rothe-order #rothe-fulfilment-date::-webkit-datetime-edit{min-width:0;padding:0;color:#000}
@media(max-width:480px){
  #rothe-order .rothe-fulfilment{grid-template-columns:minmax(0,1fr)}
}
