:root{
  --rer-navy:#00163e;
  --rer-navy-2:#062b62;
  --rer-cyan:#00bbc7;
  --rer-cyan-dark:#00a5b1;
  --rer-cyan-soft:#eafcfd;
  --rer-text:#102746;
  --rer-muted:#6f8096;
  --rer-line:#d9e3ec;
  --rer-input:#f9fbfd;
  --rer-card:#ffffff;
  --rer-danger:#d13d3d;
}

.rer-shell{
  width:100%;
  max-width:940px;
  margin:0 auto;
  padding:24px 16px 56px;
  color:var(--rer-text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.rer-shell *{box-sizing:border-box}
.rer-shell-form-only{display:block}

.rer-form-card{
  width:100%;
  background:var(--rer-card);
  border:1px solid #d5e0ea;
  border-radius:22px;
  padding:30px 34px 34px;
  box-shadow:0 20px 55px rgba(0,22,62,.09);
  position:relative;
  overflow:hidden;
}
.rer-form-card:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:4px;
  background:linear-gradient(90deg,var(--rer-navy),var(--rer-cyan));
}

.rer-progress{
  display:flex;
  align-items:flex-start;
  margin-bottom:28px;
  padding:2px 4px 24px;
  border-bottom:1px solid #e7edf3;
}
.rer-step{width:98px;text-align:center;color:#8797aa}
.rer-step span{
  width:32px;height:32px;border:1px solid #c8d5e2;border-radius:50%;display:grid;place-items:center;
  background:#fff;margin:0 auto 7px;font-size:12px;font-weight:800;color:#71859b
}
.rer-step small{font-size:9px;white-space:nowrap;font-weight:600}
.rer-step.is-active{color:var(--rer-cyan-dark)}
.rer-step.is-active span{
  background:var(--rer-navy);color:#fff;border-color:var(--rer-navy);
  box-shadow:0 6px 16px rgba(0,22,62,.16)
}
.rer-line{height:1px;background:#d5e0e9;flex:1;margin-top:16px}

.rer-section-title{display:flex;align-items:flex-start;gap:12px;margin:2px 0 18px}
.rer-section-title>span{
  width:30px;height:30px;border-radius:8px;background:var(--rer-cyan-soft);color:var(--rer-navy);
  display:grid;place-items:center;font-size:11px;font-weight:900;border:1px solid rgba(0,187,199,.16)
}
.rer-section-title strong,.rer-section-title small{display:block}
.rer-section-title strong{font-size:14px;color:var(--rer-navy);font-weight:800}
.rer-section-title small{font-size:10px;color:#7d8ea1;margin-top:3px}

.rer-grid{display:flex;flex-wrap:wrap;margin:-7px}
.rer-input-group{padding:7px}
.rer-width-25{width:25%}
.rer-width-50{width:50%}
.rer-width-100{width:100%}
.rer-input-group>label:not(.rer-dropzone){display:block;font-size:11px;font-weight:750;color:#243c59;margin-bottom:7px}
.rer-input-group>label span{color:var(--rer-danger)}
.rer-input-group input:not([type=file]),
.rer-input-group textarea,
.rer-input-group select{
  width:100%;border:1px solid #ced9e4!important;border-radius:10px!important;background:var(--rer-input)!important;
  color:#152c49!important;padding:12px 13px!important;min-height:44px;box-shadow:none!important;
  font:inherit;font-size:12px!important;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease
}
.rer-input-group textarea{min-height:100px;resize:vertical}
.rer-input-group input:not([type=file]):hover,.rer-input-group textarea:hover,.rer-input-group select:hover{border-color:#aebdcb!important;background:#fff!important}
.rer-input-group input:focus,.rer-input-group textarea:focus,.rer-input-group select:focus{
  border-color:var(--rer-cyan)!important;outline:none!important;background:#fff!important;
  box-shadow:0 0 0 3px rgba(0,187,199,.12)!important
}

.rer-file-group{margin-top:8px}
.rer-dropzone{
  border:1.5px dashed #77cfd5;border-radius:14px;background:#f7fdfd;min-height:160px;display:flex;
  flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;cursor:pointer;transition:.2s ease
}
.rer-dropzone:hover,.rer-dropzone.is-drag{background:var(--rer-cyan-soft);border-color:var(--rer-cyan)}
.rer-dropzone input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.rer-upload-icon{
  width:44px;height:44px;border-radius:12px;background:var(--rer-navy);color:#fff;display:grid;place-items:center;
  font-size:24px;margin-bottom:10px;box-shadow:0 8px 18px rgba(0,22,62,.15)
}
.rer-dropzone strong{font-size:12px;color:var(--rer-navy);font-weight:800}
.rer-dropzone em{font-style:normal;color:var(--rer-cyan-dark);font-size:11px;font-weight:800;margin-top:3px}
.rer-dropzone small{font-size:9px;color:#8696a8;margin-top:7px}
.rer-file-names{font-size:10px;color:#46627d;margin-top:8px;max-width:100%;overflow-wrap:anywhere}

.rer-payment-summary{
  display:flex;align-items:center;justify-content:space-between;border:1px solid #d8e3ec;border-radius:14px;
  padding:16px 18px;margin-top:21px;background:linear-gradient(135deg,#fbfdff 0%,#f2fcfd 100%)
}
.rer-payment-summary span,.rer-payment-summary small{display:block}
.rer-payment-summary span{font-size:13px;font-weight:850;color:var(--rer-navy)}
.rer-payment-summary small{font-size:10px;color:#778a9e;margin-top:3px}
.rer-payment-summary>strong{font-size:23px;color:var(--rer-navy);font-weight:900;white-space:nowrap}
.rer-payment-summary .woocommerce-Price-currencySymbol{color:var(--rer-cyan-dark)}

.rer-consent{display:flex;align-items:flex-start;gap:10px;margin:17px 2px 15px;font-size:10px;line-height:1.55;color:#64788d}
.rer-consent input{margin-top:2px;accent-color:var(--rer-cyan-dark)}

.rer-pay-button{
  width:100%;border:0!important;border-radius:11px!important;
  background:linear-gradient(110deg,var(--rer-navy) 0%,var(--rer-navy-2) 55%,var(--rer-cyan) 150%)!important;
  color:#fff!important;min-height:52px;font-size:13px!important;font-weight:850!important;letter-spacing:.01em;
  cursor:pointer;box-shadow:0 12px 28px rgba(0,22,62,.18);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease
}
.rer-pay-button:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(0,22,62,.24);filter:brightness(1.05)}
.rer-pay-button:focus{outline:3px solid rgba(0,187,199,.22)!important;outline-offset:2px}
.rer-pay-button:disabled{opacity:.72;cursor:wait;transform:none}
.rer-pay-button span{margin-left:8px;color:#7af4f7}
.rer-payment-note{text-align:center;color:#8a99aa;font-size:9px;line-height:1.5;margin-top:10px}

.rer-alert{padding:12px 14px;border-radius:10px;font-size:12px;margin:0 0 16px}
.rer-alert-error{background:#fff3f3;border:1px solid #efc7c7;color:#9c2f2f}
.rer-hp{position:absolute!important;left:-9999px!important;opacity:0!important}
.rer-order-reference{padding:12px 14px;background:var(--rer-cyan-soft);border-left:3px solid var(--rer-cyan);border-radius:8px;color:var(--rer-navy)}

@media(max-width:900px){
  .rer-shell{max-width:760px;padding:20px 16px 48px}
  .rer-form-card{padding:26px 24px 30px}
  .rer-width-25{width:50%}
}
@media(max-width:600px){
  .rer-shell{padding:14px 10px 36px}
  .rer-form-card{padding:20px 14px 22px;border-radius:16px}
  .rer-width-25,.rer-width-50,.rer-width-100{width:100%}
  .rer-progress{padding-left:0;padding-right:0;margin-bottom:22px}
  .rer-step{width:74px}
  .rer-step small{font-size:8px}
  .rer-line{margin-top:16px}
  .rer-payment-summary{align-items:flex-start;gap:12px;padding:14px}
  .rer-payment-summary>strong{font-size:20px}
}

/* v1.7 — delivery selector, scoped to the existing primary review form */
.rer-delivery-options{border:0!important;padding:0!important;margin:24px 0 0!important;min-width:0!important}
.rer-delivery-options legend{float:none!important;display:block!important;width:100%;font-size:13px;font-weight:850;color:#0b2850;margin:0 0 12px;padding:0}
.rer-delivery-options legend span{color:#cc4055}
.rer-delivery-choice{display:flex!important;align-items:flex-start;gap:12px;padding:17px!important;margin:0 0 11px!important;border:1px solid #d3e1eb;border-radius:13px;background:#fff;cursor:pointer;box-shadow:0 2px 12px rgba(1,36,70,.03);transition:border-color .2s,background .2s,box-shadow .2s}
.rer-delivery-choice:hover,.rer-delivery-choice.is-selected{border-color:#00b6c7;background:#f0fcfe;box-shadow:0 0 0 2px rgba(0,182,199,.09)}
.rer-delivery-choice input[type=radio]{flex:0 0 auto;width:17px;height:17px;margin:3px 0 0;accent-color:#00b6c7;cursor:pointer}
.rer-delivery-choice-body{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.rer-delivery-choice-body>strong{display:block;color:#001d48;font-size:13px;font-weight:850}
.rer-delivery-choice-body>strong em{font-style:normal;display:inline-block;background:#d8f8f8;border-radius:20px;color:#007b85;font-size:10px;font-weight:800;padding:2px 7px;margin-left:6px}
.rer-delivery-choice-body small{color:#526c85;line-height:1.5;font-size:11px}
.rer-delivery-choice .rer-delivery-price{white-space:nowrap;color:#00325e;font-size:19px;font-weight:900;margin-left:5px}
.rer-delivery-choice .rer-delivery-price .woocommerce-Price-currencySymbol{color:#00a7b9}
@media(max-width:600px){.rer-delivery-choice{gap:8px;padding:13px!important}.rer-delivery-choice .rer-delivery-price{font-size:16px}.rer-delivery-choice-body>strong{font-size:12px}}
