.hw-commerce { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 30px); margin-block: 20px; }
.hw-commerce-header, .hw-commerce-actions, .hw-commerce-balance { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hw-commerce h2, .hw-commerce h3, .hw-commerce p { margin: 0 0 14px; }
.hw-commerce h2 { font-size: 22px; } .hw-commerce h3 { font-size: 19px; }
.hw-commerce p { line-height: 1.65; } .hw-commerce button, .hw-commerce a.primary-btn { min-height: 44px; padding: 11px 20px; font-size: 16px; margin: 5px 8px 5px 0; cursor: pointer; }
.hw-commerce button:disabled { cursor: not-allowed; opacity: .55; }
.hw-commerce-balance { justify-content: flex-start; padding-block: 10px; } .hw-commerce-balance strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.hw-commerce-package { padding-block: 14px 20px; } .hw-commerce-price { font-size: 32px; font-weight: 750; }
.hw-commerce-actions { justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 14px; }
.hw-commerce-note, .hw-commerce-record span, .hw-commerce-record small { color: var(--muted); font-size: 14px; }
.hw-commerce-status:empty { display: none; } .hw-commerce-status { padding: 10px 14px; border-radius: 8px; background: var(--panel-soft); }
.hw-commerce a { color: var(--accent); text-underline-offset: 3px; } .hw-commerce a.primary-btn { display: inline-block; color: var(--text); text-decoration: none; }
.hw-commerce-record { border-top: 1px solid var(--line); padding-block: 18px; overflow-wrap: anywhere; } .hw-commerce-record strong { display: block; margin-bottom: 8px; }
.hw-commerce form { display: grid; gap: 16px; max-width: 700px; } .hw-commerce label { display: grid; gap: 8px; font-weight: 600; }
.hw-commerce input, .hw-commerce textarea { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 12px; font: inherit; width: 100%; min-width: 0; box-sizing: border-box; }
.hw-commerce textarea { resize: vertical; } .hw-commerce form button { justify-self: start; }
.hw-commerce img { display: block; max-width: 100%; object-fit: contain; border-radius: 8px; margin-block: 12px; }
.hw-commerce-messages { max-height: 400px; overflow-y: auto; margin-bottom: 20px; } .hw-commerce-messages article { border-bottom: 1px solid var(--line); padding-block: 12px; } .hw-commerce-messages p { white-space: pre-wrap; overflow-wrap: anywhere; } .hw-commerce-messages img { max-width: 320px; max-height: 240px; }
.hw-commerce :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) { .hw-commerce-header { align-items: flex-start; } .hw-commerce-balance strong { font-size: 26px; } .hw-commerce-actions { gap: 4px; } .hw-commerce-actions button { padding: 10px; margin-right: 0; } }
