/* Toolcat Pikatilaus — styled with the theme's custom properties where
   available (var(--x, fallback)) so it follows light/dark mode, but every
   value has a neutral fallback for use under any other theme. */

/* Trigger button — used by the shortcode and the theme's shop-page button.
   Matches the theme's .bo (outline) button pattern without depending on
   its CSS existing. */
.tc-qo-btn{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border:1.5px solid var(--border,#e4eaf2);border-radius:10px;background:var(--card,#fff);color:var(--ink,#0e1a2b);font-family:inherit;font-size:14px;font-weight:700;text-decoration:none;cursor:pointer;transition:border-color .2s,transform .2s}
.tc-qo-btn:hover{border-color:var(--blue,#2563eb);color:var(--blue,#2563eb);transform:translateY(-1px)}

/* Modal shell */
body.tc-qo-open{overflow:hidden}
.tc-qo-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding:5vh 20px}
.tc-qo-modal[hidden]{display:none}
.tc-qo-modal__backdrop{position:absolute;inset:0;background:rgba(14,26,43,.55);backdrop-filter:blur(2px)}
.tc-qo-modal__dialog{position:relative;width:100%;max-width:640px;max-height:90vh;overflow-y:auto;background:var(--card,#fff);border-radius:18px;padding:32px;box-shadow:0 30px 80px rgba(14,26,43,.35)}
.tc-qo-modal__close{position:absolute;top:16px;right:16px;width:34px;height:34px;border:none;border-radius:50%;background:var(--soft,#f5f8fc);color:var(--ink-soft,#3c4a60);font-size:22px;line-height:1;cursor:pointer;transition:background .2s}
.tc-qo-modal__close:hover{background:var(--soft-2,#eef3fa)}
.tc-qo-modal__title{font-size:22px;font-weight:800;color:var(--heading,#0e1a2b);margin:0 0 16px}

.tc-qo{max-width:640px}
.tc-qo__label{display:block;font-weight:700;font-size:16px;color:var(--heading,#0e1a2b);margin-bottom:4px}
.tc-qo__help{font-size:13.5px;color:var(--muted,#556174);margin:0 0 12px}
.tc-qo textarea,.tc-qo-modal textarea{width:100%;padding:14px 16px;border:1.5px solid var(--border,#e4eaf2);border-radius:12px;background:var(--card,#fff);color:var(--ink,#0e1a2b);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:1.7;resize:vertical;min-height:180px}
.tc-qo textarea:focus,.tc-qo-modal textarea:focus{outline:none;border-color:var(--blue,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.14)}
.tc-qo__submit{margin-top:14px;padding:13px 26px;border:none;border-radius:12px;background:var(--btn,#2563eb);color:#fff;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:background .2s,transform .2s}
.tc-qo__submit:hover{background:var(--blue-deep,#1d4ed8);transform:translateY(-1px)}
.tc-qo__notice{border-radius:12px;padding:14px 18px;font-size:14px;line-height:1.6;margin-bottom:16px}
.tc-qo__notice--ok{background:var(--green-soft,#e8f6ee);color:var(--green-text,#166534);border:1px solid rgba(21,128,61,.25)}
.tc-qo__notice--ok a{color:inherit;font-weight:700}
.tc-qo__notice--err{background:var(--amber-soft,#fef3c7);color:var(--amber-text,#b45309);border:1px solid rgba(180,83,9,.25)}
.tc-qo__notice--err ul{margin:8px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.tc-qo__notice--err code{background:rgba(0,0,0,.06);border-radius:6px;padding:1px 6px;font-size:12.5px}
.tc-qo__row{font-weight:700}
.tc-qo__login{font-size:15px}
.tc-qo__login a{font-weight:700;color:var(--blue,#2563eb)}
