#ec27ca-modal { width: min(960px, calc(100% - 32px)); max-width: 960px; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #dce1e6; border-radius: 8px; color: #24292e; background: #fff; overflow-y: auto; box-shadow: 0 15px 60px #0003; }
#ec27ca-modal::backdrop { background: #0008; }
body.ec27ca-open { overflow: hidden; }
.ec27ca-modal-inner { padding: 24px; position: relative; }
#ec27ca-modal h2, #ec27ca-cart h2 { margin: 0 40px 18px 0; padding: 0; border: 0; background: none; font-size: 21px; font-weight: 700; line-height: 1.35; letter-spacing: 0; text-transform: none; }
#ec27ca-title > i { color: #189c4c; margin-right: 8px; }
.ec27ca-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 1px solid #dce1e6; border-radius: 6px; background: #fff; color: #616b75; cursor: pointer; }
.ec27ca-added { display: flex; align-items: center; gap: 20px; margin: 10px 0 20px; }
.ec27ca-added img { width: 100px; height: 100px; object-fit: contain; flex-shrink: 0; }
.ec27ca-added-name { font-size: 17px; }
.ec27ca-added-attributes { margin: 6px 0 0; color: #616b75; }
.ec27ca-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.ec27ca-actions > a, .ec27ca-actions > button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px; font-size: 15px; font-weight: 600; border: 1px solid #ff0028; border-radius: 6px; background: #ff0028; color: #fff; cursor: pointer; text-decoration: none; }
.ec27ca-actions > button { background: #fff; color: #e50024; }
.ec27ca-accessories { border-top: 1px solid #dce1e6; padding-top: 20px; }
#ec27ca-cart { margin: 24px 0; clear: both; }
#ec27ca-cart:empty { display: none; }
.ec27ca-accessories h2 > i { color: #ff0028; margin-right: 8px; }
.ec27ca-products { display: grid; grid-auto-flow: column; grid-auto-columns: 206px; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; }
.ec27ca-product { display: flex; flex-direction: column; min-width: 0; padding: 10px; border: 1px solid #dce1e6; border-radius: 6px; background: #fff; scroll-snap-align: start; }
.ec27ca-product.ec27ca-product-recommended { background: #fff1f3; border-color: #ffb9c4; }
.ec27ca-product-recommended .ec27ca-image { background: transparent; mix-blend-mode: multiply; }
.ec27ca-image { display: block; height: 100px; flex-shrink: 0; text-align: center; }
.ec27ca-badge-slot { height: 27px; flex-shrink: 0; margin-bottom: 0; }
.ec27ca-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 4px; background: #ff0028; color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.ec27ca-badge-slot:empty { visibility: hidden; }
.ec27ca-products-has-box .ec27ca-badge-slot { height: 44px; }
.ec27ca-products-has-box .ec27ca-badge { max-width: 100%; white-space: normal; line-height: 16px; }
.ec27ca-product-box .ec27ca-image img { transform: translateY(5px); }
.ec27ca-product-box .ec27ca-name { margin-bottom: 5px; }
.ec27ca-protection { margin: 0 0 8px; color: #616b75; font-size: 12px; line-height: 1.4; }
.ec27ca-installation { display: inline-block; margin-top: 3px; color: #b90025; font-size: inherit; font-weight: 700; }
.ec27ca-image img { max-width: 100%; width: 100px; height: 100px; object-fit: contain; }
.ec27ca-name { display: block; color: #24292e; font-size: 12px; line-height: 1.35; font-weight: 600; margin: 5px 0 6px; overflow-wrap: anywhere; }
.ec27ca-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.ec27ca-products { align-items: stretch; }
.ec27ca-prices { display: flex; flex-direction: column; }
.ec27ca-prices del { color: #747c85; font-size: 13px; }
.ec27ca-prices strong { color: #e50024; font-size: 17px; white-space: nowrap; }
.ec27ca-add, .ec27ca-choose { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 8px; border: 0; border-radius: 6px; background: #ff0028; color: #fff; font-weight: 600; cursor: pointer; }
.ec27ca-add:disabled { opacity: .55; cursor: wait; }
.ec27ca-choose:hover, .ec27ca-actions > a:hover { background: #d90022; color: #fff; }
.ec27ca-error { color: #b00020; margin: 12px 0 0; }
#ec27ca-modal .ec27ca-actions > a, #ec27ca-modal .ec27ca-choose, #ec27ca-cart .ec27ca-choose { color: #fff; }
#ec27ca-modal .ec27ca-name { color: #24292e; }
.ec27ca-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ec27ca-scroll { display: flex; gap: 6px; flex-shrink: 0; }
.ec27ca-scroll[hidden] { display: none; }
.ec27ca-scroll button { width: 32px; height: 32px; border: 1px solid #dce1e6; border-radius: 6px; background: #fff; color: #616b75; cursor: pointer; }
.ec27ca-scroll button:disabled { opacity: .35; cursor: default; }
#ec27ca-modal :focus-visible, #ec27ca-cart :focus-visible { outline: 2px solid #e50024; outline-offset: 3px; }
@media (max-width: 600px) {
  .ec27ca-modal-inner { padding: 18px 14px; }
  #ec27ca-modal h2, #ec27ca-cart h2 { font-size: 18px; }
  #ec27ca-modal .ec27ca-heading { align-items: center; gap: 4px; margin-bottom: 12px; }
  #ec27ca-modal .ec27ca-heading h2 { margin: 0; font-size: 14px; white-space: nowrap; }
  #ec27ca-modal .ec27ca-heading h2 > i { margin-right: 4px; }
  #ec27ca-modal .ec27ca-scroll { gap: 4px; }
  #ec27ca-modal .ec27ca-scroll button { width: 28px; height: 32px; padding: 0; }
  .ec27ca-actions { display: grid; grid-template-columns: 1fr; }
  #ec27ca-modal .ec27ca-actions { margin-bottom: 12px; }
  #ec27ca-modal .ec27ca-accessories { padding-top: 10px; }
  .ec27ca-added { gap: 12px; }
  #ec27ca-modal .ec27ca-added-name { font-size: 13px; }
  #ec27ca-modal .ec27ca-name { font-size: 11px; }
  #ec27ca-modal .ec27ca-product { padding-top: 5px; }
  #ec27ca-modal .ec27ca-badge { padding-top: 3px; padding-bottom: 3px; }
  #ec27ca-modal .ec27ca-badge-slot { height: 24px; }
  #ec27ca-modal .ec27ca-products-has-box .ec27ca-badge-slot { height: 40px; }
  .ec27ca-products { grid-auto-columns: 180px; }
}
@media (max-width: 360px) {
  #ec27ca-modal .ec27ca-heading h2 > i { display: none; }
}
