.product-rotation-duration {display:grid;grid-template-columns:1fr 1fr;gap:16px}
.product-rotation-duration[hidden] {display:none}
.product-rotation-controls {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.product-detail-header-row + div > .product-rotation-controls {margin-left:auto;padding:8px 16px}
.product-detail-header-row + div:has(> .product-rotation-controls) {flex-wrap:wrap}
.product-rotation-card {display:flex;flex-direction:column;gap:6px;border:1px solid #dde7e4;background:#f6faf8;border-radius:12px;padding:14px;margin-bottom:12px;color:#343951;overflow-wrap:anywhere}
.product-rotation-card small {color:#60746a;line-height:1.5}
.product-rotation-card p {margin:4px 0 0}
.product-expiry-reminder {border:1px solid #e6d39b;background:#fff9e9;border-radius:12px;padding:16px;margin-bottom:16px;color:#5d4c26}
.product-expiry-reminder p {margin:0 0 12px}
.product-rotation-settings {width:min(700px,100%)}
.product-rotation-settings .wv-jobs-body {background:#f7f9fb;padding:24px;display:flex;flex-direction:column;gap:16px}
.product-rotation-settings .wv-jobs-body p {font-size:13px;font-weight:400;line-height:1.6;margin:0 !important;color:#69758a}
.rotation-settings-intro {padding:0 2px 2px;flex-shrink:0}
.rotation-settings-intro strong {display:block;font-size:16px;font-weight:600;color:#343951;margin-bottom:4px;overflow-wrap:anywhere}
.product-rotation-settings .rotation-settings-intro p {font-size:14px}
.rotation-setting {flex:0 0 auto;border:1px solid #e1e7ee;border-radius:14px;background:#fff;overflow:hidden;transition:border-color .15s}
.rotation-setting[data-enabled="true"] {border-color:#c7dcd2}
.rotation-setting-header {display:flex;align-items:flex-start;gap:12px;padding:20px}
.rotation-setting-icon {width:36px;height:36px;flex:0 0 36px;border-radius:10px;display:grid;place-items:center;background:#eef5f1;color:#3c785b;font-size:18px}
.rotation-setting-copy {flex:1;min-width:0}
.product-rotation-settings .rotation-setting-copy h3 {font-size:16px;font-weight:600;line-height:1.4;color:#343951;margin:0 0 5px}
.rotation-switch {display:flex;align-items:center;gap:8px;flex-shrink:0;min-height:36px;margin:0;cursor:pointer;font-size:12px;font-weight:500;color:#758094}
.rotation-switch input[type="checkbox"] {appearance:none;-webkit-appearance:none;position:relative;display:block;flex:0 0 42px;width:42px;height:24px;min-height:0;margin:0;border:1px solid #c5ced8;border-radius:20px;background:#d6dde5;cursor:pointer;transition:background .15s,border-color .15s}
.rotation-switch input[type="checkbox"]::before {content:"";position:absolute;width:18px;height:18px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #23304a26;transition:transform .15s}
.rotation-switch input[type="checkbox"]:checked {background:#3c785b;border-color:#3c785b}
.rotation-switch input[type="checkbox"]:checked::before {transform:translateX(18px)}
.rotation-switch input[type="checkbox"]:hover {border-color:#748f81}
.rotation-switch input[type="checkbox"]:focus-visible {outline:3px solid #9ac6b0;outline-offset:3px}
.rotation-setting-fields {border-top:1px solid #edf0f3;padding:18px 20px;background:#fcfdfc}
.product-rotation-settings [hidden] {display:none !important}
.product-rotation-settings .wv-job-field {font-size:12px;font-weight:500;gap:6px;margin:0 0 12px}
.product-rotation-settings .wv-job-field input,.product-rotation-settings .wv-job-field select {font-size:14px;font-weight:400;min-height:42px;padding:10px 12px;border-radius:9px}
.product-rotation-settings .rotation-setting-hint {font-size:12px}
.rotation-setting-fields > .rotation-setting-hint + .product-rotation-duration {margin-top:16px}
.rotation-threshold {display:flex;gap:12px;align-items:center}
.rotation-threshold .wv-job-field {width:104px;flex-shrink:0}
.rotation-threshold-context {font-size:13px;font-weight:400;color:#69758a;padding-top:8px}
.rotation-settings-note {display:flex;flex-shrink:0;gap:8px;align-items:flex-start;padding:0 2px;font-size:12px;font-weight:400;color:#758094;line-height:1.6}
.rotation-settings-note i {color:#60816f}
@media(max-width:540px){
  .product-rotation-settings .wv-jobs-body {padding:16px;gap:12px}
  .rotation-setting-header {padding:16px;gap:10px;display:grid;grid-template-columns:30px minmax(0,1fr) 42px}
  .rotation-setting-icon {width:30px;height:30px;font-size:16px}
  .rotation-setting-copy {grid-column:2}
  .rotation-setting-header:has(.rotation-switch) .rotation-setting-copy {grid-row:1}
  .rotation-switch {grid-column:3;grid-row:1;min-height:30px}
  .rotation-switch span {display:none}
  .rotation-setting-fields {padding:16px}
  .rotation-settings-note {font-size:11px}
}
@media(prefers-reduced-motion:reduce){.rotation-switch input[type="checkbox"],.rotation-switch input[type="checkbox"]::before,.rotation-setting{transition:none}}
@media(max-width:540px){.product-rotation-duration{gap:10px}.product-rotation-card{padding:12px}}
