@property --iwc-angle { syntax:"<angle>"; initial-value:0deg; inherits:true; }
/* Imprestar Cotizaciones Propias — frontend styles scoped to this plugin only. */
body.iwc-own-quotes .yith-ywraq-add-to-quote,
body.iwc-own-quotes .yith_ywraq_add_item_response_message,
body.iwc-own-quotes .yith_ywraq_add_item_browse_message,
body.iwc-own-quotes .yith-ywraq-list-widget,
body.iwc-own-quotes .yith-ywraq-mail-form-wrapper{display:none!important}

body.iwc-own-quotes .iwc-add-button,
body.iwc-own-quotes .iwc-open-modal,
body.iwc-own-quotes .iwc-select-options,
#iwc-submit,
#iwc-wa{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:50px;padding:12px 18px;border-radius:14px!important;
  font-family:inherit!important;font-size:15px!important;font-weight:700!important;line-height:1.25!important;
  text-decoration:none!important;cursor:pointer;transition:transform .16s ease, box-shadow .16s ease, color .16s ease;
}
body.iwc-own-quotes .iwc-add-button:hover,
body.iwc-own-quotes .iwc-open-modal:hover,
body.iwc-own-quotes .iwc-select-options:hover,
#iwc-submit:hover,
#iwc-wa:hover{transform:translateY(-1px)}
body.iwc-own-quotes .iwc-add-button:focus-visible,
body.iwc-own-quotes .iwc-open-modal:focus-visible,
#iwc-submit:focus-visible,
#iwc-wa:focus-visible{outline:3px solid rgba(1,122,161,.28)!important;outline-offset:3px}

/* Imprestar: white button with animated multicolor border + soft blurred glow.
   Shared 12-second color travel; the halo fades fully every 6 seconds. */
body.iwc-own-quotes button.iwc-open-modal.iwc-radiance,
body.iwc-own-quotes button.iwc-add-button.iwc-radiance,
body.iwc-own-quotes button#iwc-float.iwc-radiance,
body.iwc-own-quotes button#iwc-submit.iwc-radiance,
body.iwc-own-quotes a#iwc-wa.iwc-radiance {
  position:relative!important;
  isolation:isolate!important;
  overflow:visible!important;
  border:4px solid transparent!important;
  border-radius:18px!important;
  box-sizing:border-box!important;
  background:linear-gradient(#ffffff,#ffffff) padding-box,conic-gradient(from var(--iwc-angle), #d45d26 0%, #f4bb32 10%, #57a859 20%, #56a0c6 30%, #bf3989 40%, #d45d26 50%, #f4bb32 60%, #57a859 70%, #56a0c6 80%, #bf3989 90%, #d45d26 100%) border-box;
  background-size:100% 100%,100% 100%!important;
  background-position:0 0,0% 50%;
  color:#153449!important;
  font-weight:700!important;
  font-family:"Didact Gothic",Arial,sans-serif!important;
  animation:iwc-orbit 10s linear infinite!important;
  box-shadow:0 6px 18px rgba(0,50,77,.08)!important;
  text-shadow:none!important;
}
body.iwc-own-quotes button.iwc-open-modal.iwc-radiance::before,
body.iwc-own-quotes button.iwc-add-button.iwc-radiance::before,
body.iwc-own-quotes button#iwc-float.iwc-radiance::before,
body.iwc-own-quotes button#iwc-submit.iwc-radiance::before,
body.iwc-own-quotes a#iwc-wa.iwc-radiance::before {
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:inherit;
  z-index:-2;
  pointer-events:none;
  background:conic-gradient(from var(--iwc-angle), #d45d26 0%, #f4bb32 10%, #57a859 20%, #56a0c6 30%, #bf3989 40%, #d45d26 50%, #f4bb32 60%, #57a859 70%, #56a0c6 80%, #bf3989 90%, #d45d26 100%);
  background-size:100% 100%;
  background-position:0% 50%;
  opacity:0;
  filter:blur(9px);
  transform:scale(1);
  animation:iwc-aura-breathe 5s ease-in-out infinite!important;
}
/* Solid white interior above the blurred colors; text stays legible. */
body.iwc-own-quotes button.iwc-open-modal.iwc-radiance::after,
body.iwc-own-quotes button.iwc-add-button.iwc-radiance::after,
body.iwc-own-quotes button#iwc-float.iwc-radiance::after,
body.iwc-own-quotes button#iwc-submit.iwc-radiance::after,
body.iwc-own-quotes a#iwc-wa.iwc-radiance::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:#fff;
  pointer-events:none;
  z-index:-1;
}
@keyframes iwc-border-flow {from{background-position:0 0,0% 50%}to{background-position:0 0,100% 50%}}
@keyframes iwc-orbit {to{--iwc-angle:360deg}}
@keyframes iwc-aura-breathe {
  0%,100%{opacity:0;transform:scale(1)}
  40%,60%{opacity:var(--iwc-glow,1);transform:scale(1.025)}
}
@media(prefers-reduced-motion:reduce){
  body.iwc-own-quotes button.iwc-open-modal.iwc-radiance,body.iwc-own-quotes button.iwc-add-button.iwc-radiance,body.iwc-own-quotes button#iwc-float.iwc-radiance,body.iwc-own-quotes button#iwc-submit.iwc-radiance,body.iwc-own-quotes a#iwc-wa.iwc-radiance{animation:none!important;}
  body.iwc-own-quotes button.iwc-open-modal.iwc-radiance::before,
body.iwc-own-quotes button.iwc-add-button.iwc-radiance::before,
  body.iwc-own-quotes button#iwc-float.iwc-radiance::before,
  body.iwc-own-quotes button#iwc-submit.iwc-radiance::before,
  body.iwc-own-quotes a#iwc-wa.iwc-radiance::before{animation:none!important;opacity:0!important;filter:blur(8px)}
  body.iwc-own-quotes .iwc-add-button,
  body.iwc-own-quotes .iwc-open-modal,
  #iwc-submit,#iwc-wa{transition:none!important;}
}
/* More generous standalone desktop product action, separated from categories. */
@media(min-width:768px){
  body.iwc-single-product-quote .iwc-add-button.iwc-radiance{
    min-width:312px!important;
    max-width:100%!important;
    min-height:59px!important;
    padding:17px 28px!important;
    margin:18px 0 25px!important;
    font-size:16px!important;
    display:inline-flex!important;
  }
}

.iwc-loop-add{margin:10px 0}
.iwc-legacy-fallback{padding:24px 0;text-align:center}
.iwc-legacy-fallback .iwc-open-modal{min-width:240px}

.iwc-float{position:fixed!important;z-index:9989;display:none!important;border-radius:16px!important;box-shadow:0 10px 26px rgba(15,42,52,.14)!important}

.iwc-modal[hidden],#iwc-stage-form[hidden],#iwc-stage-success[hidden]{display:none!important}
.iwc-modal{position:fixed;inset:0;z-index:2147482000;display:flex;align-items:stretch;justify-content:center;font-family:"Didact Gothic",Arial,sans-serif!important;color:#213744}
.iwc-modal,.iwc-modal *{box-sizing:border-box}
.iwc-shade{position:absolute;inset:0;background:rgba(8,24,32,.56)}
.iwc-dialog{position:relative;width:100%;height:100dvh;max-width:none;max-height:none;border-radius:0;background:#fff;display:flex;flex-direction:column;box-shadow:none;margin:0}
.iwc-head{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid #e6eef2;background:#fff}
.iwc-head h2{margin:3px 0 0!important;padding:0!important;color:#122b38!important;font-family:"Didact Gothic",Arial,sans-serif!important;font-size:24px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:0!important}
.iwc-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:#0c84ab}
.iwc-close{width:46px;height:46px;min-width:46px;border:0!important;border-radius:0!important;background:transparent!important;color:#253139!important;font-size:28px!important;line-height:1!important;padding:0!important;cursor:pointer;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;transition:transform .2s ease!important}
.iwc-close:hover{transform:rotate(90deg)!important;background:transparent!important}
.iwc-close-symbol{position:relative;display:block;width:30px;height:30px;flex:0 0 30px;background:transparent!important;border:0!important;box-shadow:none!important}
.iwc-close-symbol>span{position:absolute;top:13px;left:0;display:block;width:30px;height:4px;border-radius:4px;background-image:linear-gradient(100deg,#c95520 0%,#edba32 24%,#60aa51 49%,#559fb8 74%,#cc3585 100%)!important;background-size:220% 100%!important;box-shadow:0 1px 3px rgba(40,65,75,.12);animation:iwc-border-flow 5s ease-in-out infinite alternate!important}
.iwc-close-symbol>span:first-child{transform:rotate(45deg)}
.iwc-close-symbol>span:last-child{transform:rotate(-45deg);animation-delay:-2.4s!important}
.iwc-content{flex:1;overflow:auto;padding:20px 24px 34px;width:100%;max-width:920px;margin:0 auto}
.iwc-intro{display:none!important}
.iwc-items-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;color:#173948;font-size:15px}
.iwc-items-title strong{font-weight:700}
.iwc-items-title span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;background:#e8f4f9;color:#117696;font-weight:700}
#iwc-items{margin-bottom:20px}
.iwc-item{display:flex;align-items:center;gap:12px;padding:12px 2px;border-bottom:1px solid #e5edf0;min-height:72px}
.iwc-item img{width:56px!important;height:56px!important;max-width:56px!important;object-fit:cover;border-radius:10px;flex:0 0 56px}
.iwc-item-name{flex:1;min-width:0;font-size:14px;line-height:1.35;color:#193c4d;font-weight:700;font-family:"Didact Gothic",Arial,sans-serif!important}
.iwc-item-name small{display:block;margin-top:5px;color:#6f838d;font-size:12px;font-weight:600}
.iwc-item-remove{border:0!important;background:transparent!important;color:#73838a!important;font-size:24px!important;padding:6px!important;min-width:32px;cursor:pointer}
.iwc-empty{background:#f4f8fa;border-radius:14px;padding:18px 16px;color:#59717d;font-size:14px;text-align:center}

.iwc-fields{display:grid;gap:12px}
.iwc-fields input,.iwc-fields textarea{
  width:100%!important;min-width:0!important;margin:0!important;padding:15px 17px!important;
  border:1px solid #c9d8df!important;border-radius:14px!important;background:#fff!important;color:#203541!important;
  box-shadow:none!important;font-family:inherit!important;font-size:15px!important;line-height:1.4!important;outline:none;
  transition:border-color .15s ease, box-shadow .15s ease!important;
}
.iwc-fields input{min-height:54px!important;height:54px!important}
.iwc-fields textarea{min-height:112px!important;resize:vertical}
.iwc-fields input:focus,.iwc-fields textarea:focus{border-color:#0780a7!important;box-shadow:0 0 0 3px rgba(9,142,181,.13)!important}
.iwc-fields input::placeholder,.iwc-fields textarea::placeholder{color:#647884!important;opacity:1}

.iwc-consent{display:flex!important;gap:10px;align-items:flex-start;margin:16px 0 14px!important;font-size:12px!important;line-height:1.55!important;color:#566a74!important;font-weight:400!important}
.iwc-consent input{width:17px!important;height:17px!important;min-width:17px!important;margin:2px 0 0!important;accent-color:#0784ab}
.iwc-consent a{color:#057ba3!important;text-decoration:underline!important}
#iwc-submit,#iwc-wa{width:100%;min-height:54px!important;margin:0!important}
#iwc-submit[disabled]{opacity:.7;cursor:wait}
.iwc-error{margin:0 0 12px;background:#fff0ee;color:#a1271d;border-radius:10px;padding:11px 12px;font-size:13px;line-height:1.5}

/* Dedicated success layout: centered even after scrolling the long form. */
.iwc-content.iwc-success-mode{
  display:flex;
  align-items:center;
  justify-content:center;
  max-width:none;
  width:100%;
  padding:30px 20px 45px;
  background:radial-gradient(circle at 17% 12%,rgba(182,224,239,.44),transparent 48%),
             radial-gradient(circle at 91% 85%,rgba(242,213,231,.36),transparent 48%),#f7fafb;
}
#iwc-stage-success{width:min(100%,580px);margin:auto;text-align:center}
.iwc-success-card{
  width:100%;
  border:1px solid #e1eaf0;
  border-radius:24px;
  background:#fff;
  padding:clamp(26px,4vw,48px) clamp(20px,4vw,46px);
  box-shadow:0 18px 60px rgba(20,52,69,.085);
}
.iwc-check{width:72px;height:72px;margin:0 auto 19px;border-radius:999px;background:#e6f6ed;color:#179d58;display:grid;place-items:center;font-size:38px;line-height:1}
#iwc-stage-success h3{margin:0 0 16px!important;color:#203b49!important;font-size:clamp(25px,4vw,31px)!important;line-height:1.18!important;font-weight:700!important;outline:none;font-family:"Didact Gothic",Arial,sans-serif!important}
#iwc-success-text{margin:0!important;color:#55707b;font-size:16px;line-height:1.65;font-family:"Didact Gothic",Arial,sans-serif!important}
.iwc-order-ref{color:#738690;font-size:12px;letter-spacing:.2px;margin:16px 0 24px!important;font-family:"Didact Gothic",Arial,sans-serif!important}
#iwc-wa{width:100%;min-height:58px!important;margin:0!important}
.iwc-honeypot{position:absolute!important;left:-10000px!important;opacity:0!important;height:0!important;width:0!important}
.iwc-sr{border:0!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;height:1px!important;width:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important}
html.iwc-dialog-open,html.iwc-dialog-open body{overflow:hidden!important}

@media(min-width:768px){
  body.iwc-single-product-quote .iwc-float{display:none!important}
}
@media(max-width:767px){
  /* The original product CTA remains in the DOM for JS/variation handling,
     but is not displayed beside the product on mobile. */
  body.iwc-single-product-quote button.iwc-add-button{display:none!important}
  body.iwc-single-product-quote button#iwc-float.iwc-float.iwc-radiance{
    display:inline-flex!important;position:fixed!important;left:12px!important;right:90px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;max-width:none!important;min-height:56px!important;justify-content:center!important;padding:10px 16px!important;z-index:9989!important
  }
  .iwc-head{padding:18px 16px}
  .iwc-head h2{font-size:22px!important}
  .iwc-content{padding:16px 16px 26px}
  .iwc-fields input{min-height:52px!important;height:52px!important}
  .iwc-content.iwc-success-mode{padding:20px 16px 28px}
  .iwc-success-card{border-radius:19px;padding:30px 19px 32px}
  #iwc-success-text{font-size:15px}
}

#iwc-catalog[hidden],#iwc-catalog-next[hidden]{display:none!important}
#iwc-more{margin:0 0 20px;border:1px solid #87b4c5;background:#f2fafc;color:#15536a;border-radius:10px;padding:12px 18px;cursor:pointer}
#iwc-catalog{padding:16px;margin-bottom:22px;border:1px solid #d5e4eb;border-radius:14px;background:#f8fbfc}
#iwc-catalog label{display:block;margin:8px 0;color:#234b60}
#iwc-catalog input,#iwc-catalog select{width:100%;padding:10px;box-sizing:border-box}
.iwc-catalog-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #dce6eb}
.iwc-catalog-row img{width:44px;height:44px;object-fit:cover}
.iwc-catalog-name{flex:1;min-width:0;font-size:13px}
.iwc-catalog-row button,.iwc-catalog-row a,#iwc-catalog-next{padding:8px;border-radius:8px;border:1px solid #a9cbd7;background:white;color:#15536a;cursor:pointer}
#iwc-catalog .iwc-catalog-row input{width:72px;margin:5px 0 0}
.iwc-item-name .iwc-qty{width:85px!important;min-height:32px;padding:5px!important;margin:4px 0 0 6px!important;border:1px solid #b7ced8;border-radius:6px}

/* Beta17: compact centered dialog; scroll only when content cannot fit. */
.iwc-shade{background:rgba(12,29,38,.44);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
@media(min-width:768px){
 .iwc-modal{align-items:center;justify-content:center;padding:22px}
 .iwc-dialog{width:min(720px,100%);height:auto;max-height:calc(100dvh - 44px);border-radius:20px;overflow:hidden;box-shadow:0 24px 80px #071c3455}
 .iwc-head{padding:16px 22px}
 .iwc-head h2{font-size:23px!important}
 .iwc-content{padding:16px 22px 24px;max-width:none;min-height:0}
 #iwc-items{max-height:150px;overflow:auto;margin-bottom:12px}
 .iwc-item{padding:8px 0;min-height:64px}
 .iwc-item img{width:44px!important;height:44px!important;max-width:44px!important;flex-basis:44px}
 .iwc-item-name{font-size:13px}
 .iwc-fields{grid-template-columns:1fr 1fr;gap:10px}
 #iwc-email,#iwc-message{grid-column:1/-1}
 .iwc-fields input{min-height:44px!important;height:44px!important;padding:10px 12px!important;font-size:14px!important;border-radius:10px!important}
 .iwc-fields textarea{min-height:70px!important;height:70px;padding:10px 12px!important;font-size:14px!important;border-radius:10px!important}
 .iwc-consent{margin:12px 0!important;font-size:11px!important}
 #iwc-more{padding:8px 12px;margin-bottom:12px;font-size:13px}
 #iwc-catalog-results{max-height:190px;overflow:auto}
 #iwc-submit{min-height:46px!important;padding:10px 14px}
 .iwc-content.iwc-success-mode{padding:22px}
}
@media(max-width:767px){
 .iwc-modal{align-items:center;padding:10px}
 .iwc-dialog{height:auto;max-height:calc(100dvh - 20px);border-radius:16px;overflow:hidden}
 .iwc-content{min-height:0}
}
