.worm-box{margin:2rem 0;padding:24px;border:1px solid #e3e5e8;border-radius:14px;background:#fff;box-shadow:0 6px 24px rgba(0,0,0,.04)}
.worm-form-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:20px;border-bottom:1px solid #eee}.worm-form-head h2{margin:0 0 4px}.worm-muted{color:#6b7280}.worm-deadline{padding:12px 16px;background:#f6f8fa;border-radius:10px}.worm-deadline span,.worm-deadline strong{display:block}.worm-pickup{margin:20px 0;padding:18px;background:#fafafa;border:1px solid #eee;border-radius:10px}.worm-pickup h3{margin-top:0}.worm-products-title{margin-bottom:4px}.worm-product-grid{display:grid;gap:18px;margin:20px 0}.worm-product-card{border:1px solid #dfe3e8;border-radius:12px;overflow:hidden;background:#fff}.worm-product-card.is-selected{border-color:#222;box-shadow:0 0 0 1px #222}.worm-select-row{display:flex;gap:10px;align-items:center;padding:14px 18px;background:#f7f7f7;font-weight:600;cursor:pointer}.worm-product-summary{display:flex;gap:16px;align-items:center;padding:18px}.worm-thumb img{width:76px;height:76px;object-fit:cover;border-radius:8px}.worm-product-summary h4{margin:0 0 6px}.worm-product-summary p{margin:0}.worm-qty-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #eee;border-bottom:1px solid #eee}.worm-qty-stats div{padding:12px 18px;border-right:1px solid #eee}.worm-qty-stats div:last-child{border-right:0}.worm-qty-stats span,.worm-qty-stats strong{display:block}.worm-qty-stats span{font-size:13px;color:#6b7280}.worm-item-fields{padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:16px}.worm-item-fields[hidden]{display:none}.worm-field label{display:block;font-weight:600;margin-bottom:7px}.worm-field select,.worm-field textarea,.worm-field input[type=file]{width:100%;max-width:100%}.worm-full{grid-column:1/-1}.worm-field small{display:block;margin-top:6px;color:#6b7280}.worm-stepper{display:flex;align-items:center;width:max-content;border:1px solid #ccc;border-radius:7px;overflow:hidden}.worm-stepper button{width:38px;height:38px;border:0;background:#f4f4f4;cursor:pointer;font-size:20px}.worm-stepper input{width:58px!important;height:38px!important;text-align:center;border:0!important;margin:0!important}.worm-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.worm-admin-status{display:inline-block;padding:4px 9px;border-radius:999px;background:#eef1f4;font-weight:600;font-size:12px}.worm-status-pending{background:#fff3cd}.worm-status-approved,.worm-status-order_created{background:#dff3e4}.worm-status-rejected{background:#f8d7da}.worm-status-partial{background:#dbeafe}
@media(max-width:700px){.worm-box{padding:16px}.worm-form-head{display:block}.worm-deadline{margin-top:12px}.worm-qty-stats{grid-template-columns:1fr}.worm-qty-stats div{border-right:0;border-bottom:1px solid #eee}.worm-item-fields{grid-template-columns:1fr}.worm-full{grid-column:auto}.worm-product-summary{align-items:flex-start}}
/* V4 customer success notice */
.woocommerce-message.worm-success-notice{position:relative;border:1px solid #b7e4c7!important;border-left:5px solid #16a34a!important;background:#ecfdf3!important;color:#166534!important;border-radius:12px!important;padding:16px 48px 16px 52px!important;box-shadow:0 8px 24px rgba(22,163,74,.08);font-weight:600;line-height:1.5}
.woocommerce-message.worm-success-notice:before{content:"✓"!important;display:flex!important;align-items:center;justify-content:center;position:absolute!important;left:16px!important;top:50%!important;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;background:#16a34a;color:#fff!important;font-size:14px;line-height:1}
.worm-notice-close{position:absolute;right:14px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#166534;font-size:22px;cursor:pointer;padding:5px}
/* V4 replacement history */
.worm-history{max-width:980px}.worm-history-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px}.worm-history-head h2{font-size:30px;margin:0 0 5px}.worm-history-head p{margin:0;color:#6b7280}.worm-history-list{display:grid;gap:14px}.worm-history-card{border:1px solid #e5e7eb;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 5px 20px rgba(15,23,42,.04)}.worm-history-main,.worm-history-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px}.worm-history-footer{border-top:1px solid #f0f2f4;background:#fafbfc;color:#6b7280;font-size:14px}.worm-history-footer a{font-weight:600;text-decoration:none}.worm-request-link{font-size:17px;font-weight:700;text-decoration:none}.worm-history-meta{display:flex;gap:14px;margin-top:6px;color:#6b7280;font-size:13px}.worm-badge{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;background:#eef2f7;color:#475569}.worm-badge.worm-status-pending{background:#fff7d6;color:#8a5b00}.worm-badge.worm-status-approved,.worm-badge.worm-status-order_created{background:#dcfce7;color:#166534}.worm-badge.worm-status-rejected{background:#fee2e2;color:#991b1b}.worm-badge.worm-status-partial{background:#dbeafe;color:#1d4ed8}.worm-history-detail{padding:18px 20px;border-top:1px solid #edf0f2;background:#fff}.worm-history-detail>div{display:grid;grid-template-columns:1.2fr .8fr 2fr;gap:12px;padding:10px 0;border-bottom:1px dashed #e5e7eb}.worm-history-detail>div span{color:#6b7280}.worm-empty{padding:28px;border:1px dashed #d1d5db;border-radius:12px;text-align:center;color:#6b7280}
/* V4 admin review */
.worm-review{font-size:14px}.worm-review-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:6px 0 20px;border-bottom:1px solid #e5e7eb}.worm-kicker{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:11px;color:#6b7280;font-weight:700}.worm-review-top h2{margin:5px 0 0;font-size:28px}.worm-review-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}.worm-review-summary>div{padding:16px;border:1px solid #e5e7eb;border-radius:10px;background:#fafbfc}.worm-review-summary span,.worm-review-summary strong,.worm-review-summary a{display:block}.worm-review-summary span{font-size:12px;color:#6b7280;margin-bottom:5px}.worm-review-summary strong,.worm-review-summary a{font-size:15px;font-weight:700}.worm-review-products{display:grid;gap:16px}.worm-review-product{border:1px solid #e1e5ea;border-radius:12px;background:#fff;overflow:hidden}.worm-review-product-head{display:flex;align-items:center;gap:14px;padding:16px 18px;background:#fafbfc;border-bottom:1px solid #edf0f2}.worm-review-product-head img{width:64px;height:64px;object-fit:cover;border-radius:8px}.worm-review-product-head h4{font-size:17px;margin:0 0 5px}.worm-review-product-head span{color:#6b7280}.worm-review-stats{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #edf0f2}.worm-review-stats>div{padding:15px 18px;border-right:1px solid #edf0f2}.worm-review-stats>div:last-child{border-right:0}.worm-review-stats span,.worm-review-stats strong{display:block}.worm-review-stats span{font-size:12px;color:#6b7280;margin-bottom:5px}.worm-review-stats strong{font-size:18px}.worm-review-stats input{width:90px}.worm-review-copy{padding:15px 18px}.worm-review-copy p{margin:4px 0 10px}.worm-evidence{padding:0 18px 18px}.worm-evidence>strong{display:block;margin-bottom:8px}.worm-evidence>div{display:flex;gap:10px;flex-wrap:wrap}.worm-evidence img{width:84px;height:84px;object-fit:cover;border-radius:8px;border:1px solid #dbe0e5;padding:2px;background:#fff}.worm-decision{margin-top:22px;padding:20px;border:1px solid #dbe0e5;border-radius:12px;background:#f8fafc}.worm-decision h3{margin-top:0}.worm-admin-grid{display:grid;grid-template-columns:280px 1fr;gap:16px;margin-bottom:16px}.worm-admin-grid label>span{display:block;font-weight:700;margin-bottom:7px}.worm-admin-grid select,.worm-admin-grid textarea{width:100%;max-width:100%}.post-type-worm_request .worm-admin-status{padding:6px 10px}.post-type-worm_request .wp-list-table td{vertical-align:middle}.post-type-worm_request .wp-list-table tbody tr:hover{background:#f8fafc}
@media(max-width:700px){.worm-history-main,.worm-history-footer{align-items:flex-start;flex-direction:column}.worm-history-detail>div{grid-template-columns:1fr}.worm-review-summary,.worm-review-stats,.worm-admin-grid{grid-template-columns:1fr}.worm-review-stats>div{border-right:0;border-bottom:1px solid #edf0f2}}

/* V6: full-width replacement success banner */
.woocommerce-account .woocommerce-MyAccount-content>.woocommerce-message.worm-success-notice,
.woocommerce-account .woocommerce-MyAccount-content>.woocommerce-notices-wrapper .woocommerce-message.worm-success-notice,
.woocommerce-message.worm-success-notice{
  display:block!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;
  float:none!important;clear:both!important;margin:0 0 28px!important;position:relative!important;
  border:1px solid #b7e4c7!important;border-left:5px solid #16a34a!important;background:#ecfdf3!important;color:#166534!important;
  border-radius:12px!important;padding:17px 54px 17px 54px!important;box-shadow:0 8px 24px rgba(22,163,74,.08)!important;
  font-weight:600!important;line-height:1.5!important;white-space:normal!important;
}
.woocommerce-account .woocommerce-MyAccount-content>.woocommerce-notices-wrapper{width:100%!important;max-width:none!important;display:block!important;clear:both!important}
@media(min-width:768px){.woocommerce-message.worm-success-notice{white-space:nowrap!important}}
@media(max-width:767px){.woocommerce-message.worm-success-notice{padding:15px 44px 15px 48px!important}}
