.jpa-cart-edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid #f0d9a8;
  border-radius: 12px;
  background: #fff9ed;
  color: #5c4a1f;
  font-size: 13px;
  line-height: 1.5;
}

.jpa-cart-edit-banner p {
  margin: 0;
}

.jpa-cart-edit-cancel {
  color: #111;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.jpa-cart-edit-cancel:hover {
  text-decoration: underline;
}

.jpa-rep-pricing-state {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}

.jpa-rep-pricing-state__copy strong {
  display: block;
  font-size: 15px;
  color: #111;
}

.jpa-rep-pricing-state__customer {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.jpa-rep-pricing-state__help {
  margin: 8px 0 0;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

.jpa-rep-pricing-state__field {
  flex: 0 0 auto;
  min-width: min(100%, 260px);
}

.jpa-rep-pricing-state__select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.jpa-rep-pricing-state__missing {
  flex: 1 1 240px;
}

.jpa-rep-pricing-state__missing p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

.jpa-rep-pricing-state__area-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.jpa-rep-pricing-state__area-link:hover {
  color: #fff;
  opacity: 0.92;
}

/* TITULO ATRIBUTOS*/
.jpa-attr-title {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  font-size:20px;
  margin-top:50px;
  font-weight: 700;
}

.jpa-tooltip {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  position: relative;
}

.jpa-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 240px;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 50;
}

.jpa-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #111;
  opacity: 0;
  visibility: hidden;
  z-index: 51;
}

.jpa-tooltip:hover::after,
.jpa-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

.jpa-cascade-group{
  margin-bottom:40px;
}

.sup-json-wrap{
    background:#fff;
    margin:16px 0;
    font-family:Montserrat;
}

.sup-json-wrap p.title-attr strong{
    display:block;
    font-size:20px;
    margin-top:0px;
}

.sup-json-wrap select{
    padding:20px;
    border:1px solid #CECECE;
    border-radius:15px;
    font-size:15px;
}

.jpa-attribute-section.jpa-attribute-section--subcategory{
  margin-top:20px!important;
}

.jpa-options {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom:50px;
    margin-top:30px;
}

#jpa-unit-price{
    font-size:15px;
    font-weight:bold;
    color:#2C2C2B;
}

#jpa-total-price{
    font-size:20px;
    font-weight:bold;
    color:#2C2C2B;
}

.jpa-summary-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  width: fit-content;
  max-width: fit-content; 
  transition: background 0.2s ease;
  cursor: pointer;
}

#jpa-qty {
  width: auto;
  min-width: 52px;
  width:90px;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  cursor:pointer;
}

#jpa-qty::-webkit-outer-spin-button,
#jpa-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#jpa-custom-qty-button-cart {
  height: 26px;
  border: none;
  background: transparent;
  color: #222;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jpa-option input {
    display: none;
}

.jpa-option label {
    display: block;
    width: 180px;
    cursor: pointer;
}

.jpa-option--custom-size-approved label {
    width: auto;
    min-width: 180px;
    max-width: 100%;
    padding: 12px 16px;
}

.jpa-option--custom-size-approved .jpa-content {
    flex: 1;
}

.jpa-image {
    width: 180px;
    height: 180px;
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.jpa-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.jpa-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.jpa-label {
    font-size: 14px;
    line-height: 1.35;
    color: #333;
}

.jpa-option input:checked + label .jpa-image {
    outline: 2px solid #111;
}

.jpa-options-wrap--collapsible {
  margin-bottom: 50px;
  margin-top: 30px;
}

.jpa-options-wrap--collapsible .jpa-options {
  margin-top: 0;
  margin-bottom: 0;
}

.jpa-options-wrap.is-collapsed .jpa-option--extra:not(:has(input:checked)) {
  display: none;
}

.jpa-option.jpa-option--catalog-hidden {
  display: none;
}

.jpa-options-toggle-btn {
  width: 100%!important;
  display: flex!important;
  align-items: center!important;
  gap: 8px!important;
  padding: 14px 18px!important;
  margin-top: 18px!important;
  border: 0!important;
  border-top: 1px solid #e4e4e4!important;
  background: #fff!important;
  color: #111!important;
  font-size: 14px!important;
  font-weight: 700!important;
  cursor: pointer!important;
  transition: background .2s ease, color .2s ease!important;
}

.jpa-options-toggle-btn:hover {
  background: #fafafa!important;
}

.jpa-options-toggle-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -4px;
}

.jpa-options-wrap.is-expanded .jpa-options-toggle-arrow {
  transform: rotate(-135deg);
  margin-top: 2px;
}

#jpa-artes-text{
    font-family:Montserrat;
    font-size:10px;
}

.jpa-selected-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.jpa-suggested-structure {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fafafa;
}

.jpa-suggested-structure__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.jpa-suggested-structure__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.jpa-suggested-structure__header .jpa-suggested-structure__title {
  margin: 0;
}

.jpa-suggested-structure__manual-badge {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: #2f6b3a;
}

.jpa-suggested-structure--manual {
  border-color: #c9efcf;
  background: #f5fff7;
}

.jpa-suggested-structure__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.jpa-suggested-structure__row {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
  max-width: 100%;
}

.jpa-suggested-structure__label {
  font-size: 9px;
  font-weight: 600;
  color: #888;
  line-height: 1.25;
}

.jpa-suggested-structure__value {
  font-size: 11px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  word-break: break-word;
}

.jpa-suggested-structure__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8e8e8;
}

.jpa-suggested-structure__total-label {
  font-size: 10px;
  font-weight: 600;
  color: #888;
}

.jpa-suggested-structure__total-value {
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.jpa-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  color: #333;
}

.jpa-attr-description {
  margin-top: -15px;
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
}

.jpa-dimension-prompt {
  margin: 0 0 12px;
  font-size: 14px;
  color: #222;
}

.jpa-custom-dimensions {
  margin-bottom: 24px;
}

.jpa-bobina-roll-specs {
  margin-bottom: 28px;
}

.jpa-bobina-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  max-width: 720px;
}

.jpa-bobina-spec-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.jpa-bobina-spec-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #666;
}

.jpa-bobina-spec-input {
  width: 100% !important;
  height: 52px !important;
  padding: 0 16px !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-size: 15px !important;
  color: #222 !important;
}

.jpa-bobina-spec-input:focus {
  outline: none;
  border-color: #111;
}

.jpa-bobina-spec-input.jpa-error {
  border-color: #d63638 !important;
}

@media (max-width: 640px) {
  .jpa-bobina-spec-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.jpa-dimension-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
}

.jpa-dimension-input {
  width: 100%!important;
  height: 52px!important;
  padding: 0 16px!important;
  border: 1px solid #d8d8d8!important;
  border-radius: 10px!important;
  background: #fff!important;
  font-size: 15px!important;
  color: #222!important;
}

.jpa-dimension-input:focus {
  outline: none;
  border-color: #111;
}

.jpa-dimension-input.jpa-error {
  border-color: #d63638;
}

.jpa-dimension-error {
  margin-top: 8px;
  color: #d63638;
  font-size: 13px;
}

@media (max-width: 560px) {
  .jpa-dimension-fields {
    max-width: 100%;
  }
}

.jpa-art-upload {
  max-width: 100%;
  font-family: inherit;
  color: #222;
  font-family: Montserrat;
}

.jpa-art-upload h1 {
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 28px;
}

.jpa-art-upload p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.jpa-upload-progress-summary {
  position: sticky;
  top: 112px;
  background: #FFF;
  backdrop-filter: blur(10px);
  padding: 0;
  z-index: 999;
  border-bottom: 1px solid #eee;
  margin-bottom:20px;
}

.jpa-art-status {
  display: flex;
  justify-content: space-between;
  margin: 38px 0 8px;
  font-size: 14px;
}

.jpa-art-status strong {
  color: #00a8ff;
}

.jpa-progress {
  width: 100%;
  height: 15px;
  background: #f4f4f4;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 25px;
}

.jpa-progress-bar {
  height: 100%;
  width: 33%;
  background: #08a8ff;
  border-radius: 999px;
}

.jpa-art-box {
  border-bottom: 1px solid #eee;
  padding: 0 0 34px;
  margin-bottom: 38px;
}

.jpa-art-badge {
  display: inline-block;
  background: #08a8ff;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 9px;
  margin-bottom: 18px;
}

.jpa-art-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.jpa-art-upload-card {
  width: 110px;
  height: 145px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jpa-art-upload-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jpa-art-placeholder {
  text-align: center;
  font-size: 12px;
  color: #777;
  padding: 12px;
}

.jpa-art-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: #555;
}

.jpa-art-field input[type="text"],
.jpa-art-field input[type="number"] {
  width: 100%;
  height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 9px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.jpa-art-field input:focus {
  border-color: #111;
}

.jpa-proof {
  margin-top: 18px;
}

.jpa-proof-title {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.jpa-proof-options {
  display: flex;
  gap: 18px;
  align-items: center;
}

.jpa-proof-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.jpa-art-note {
  font-size: 12px;
  line-height: 1.5;
  color: #777;
  margin-top: 32px;
}

.jpa-art-submit {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

#jpa-art-upload-form button[type="submit"] {
  background: #0d0d0d;
  color: #fff;
  border: none;
  border-radius: 999px;
  min-width: 300px;
  height: 58px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

#jpa-art-upload-form button[type="submit"]:hover {
  background: #222;
}

.jpa-alert {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-left: 5px solid #ffc107;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 15px;
  display: none;
}

.jpa-field-error {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 6px;
}

.jpa-error {
  border-color: #d32f2f !important;
}

.jpa-qty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.jpa-qty-grid input {
  display: none;
}

/* CARD QUANTIDADE */
.jpa-qty-card {
  min-height: 96px;
  padding: 24px 28px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
}

.jpa-qty-card > div {
  flex: 1;
}

.jpa-qty-card strong {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-right: 10px;
}

.jpa-qty-card small {
  display: block;
  font-size: 12px;
  color: #222;
  margin-top: 6px;
}

.jpa-qty-card .jpa-qty-total {
  font-weight: 700;
  color: #000;
}

.jpa-qty-card .jpa-qty-unit {
  color: #555;
}

.jpa-discount {
  display: inline-block;
  background: #d8ffc8;
  color: #078000;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.jpa-error-message {
  color: #d93025;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

.jpa-radio-fake {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: #fff;
}

.jpa-radio-fake-checkbox{
  border-radius:0!important;
}

.jpa-qty-grid input:checked + .jpa-qty-card {
  border: 3px solid #111;
}

.jpa-option input:checked + label .jpa-radio-fake {
    border: 5px solid #111;
}

.jpa-qty-grid input:checked + .jpa-qty-card .jpa-radio-fake {
  border: 6px solid #111;
}

/* MODAL */
.jpa-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jpa-modal-box {
  background: #fff;
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

/* HEADER */
.jpa-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid #eee;
}

.jpa-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

/* BOTÃO FECHAR */
.jpa-modal-close {
  background: transparent!important;
  border: none!important;
  font-size: 20px!important;
  color: #777!important;
  cursor: pointer!important;
  transition: .2s!important;
}

.jpa-modal-close:hover {
  color: #000;
}

/* BODY */
.jpa-modal-body {
  padding: 30px 26px;
}

.jpa-modal-body p {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
}

/* INPUT */
#jpa-custom-qty-input {
  width: 100%;
  height: 52px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 15px;
  transition: .2s;
}

#jpa-custom-qty-input:focus {
  border-color: #111;
  outline: none;
}

.jpa-customer-state-select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: #222;
}

.jpa-customer-state-select:focus {
  outline: none;
  border-color: #111;
}

.jpa-customer-state-select.jpa-error {
  border-color: #d63638;
}

.jpa-customer-state-modal .jpa-modal-box {
  max-width: 420px;
}

#jpa-apply-customer-state {
  height: 48px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#jpa-apply-customer-state:hover {
  background: #333;
}

/* FOOTER */
.jpa-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 20px 26px;
  border-top: 1px solid #eee;
}

.jpa-datacenter-debug-modal .jpa-modal-box {
  max-width: 720px;
}

.jpa-datacenter-debug-message {
  margin: 0 0 12px;
  font-weight: 600;
  white-space: pre-wrap;
  word-break: break-word;
}

.jpa-datacenter-debug-json {
  margin: 0;
  padding: 12px 14px;
  max-height: 320px;
  overflow: auto;
  background: #f6f7f8;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.jpa-structure-not-recommended-modal .jpa-modal-box {
  max-width: 560px;
}

.jpa-structure-not-recommended-intro,
.jpa-structure-not-recommended-outro {
  margin: 0 0 12px;
  line-height: 1.5;
}

.jpa-structure-not-recommended-outro {
  margin-bottom: 0;
}

.jpa-structure-not-recommended-details {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f6f7f8;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.jpa-structure-not-recommended-footer {
  gap: 10px;
}

.jpa-structure-not-recommended-change {
  height: 48px!important;
  padding: 0 22px!important;
  background: #111!important;
  color: #fff!important;
  border: none!important;
  border-radius: 999px!important;
  font-weight: 700!important;
  cursor: pointer!important;
}

.jpa-structure-not-recommended-change:hover {
  transform: translateY(-1px);
}

/* BOTÃO */
#jpa-apply-custom-qty {
  height: 48px;
  padding: 0 26px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

#jpa-apply-custom-qty:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.jpa-price-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #777;
}

.jpa-required-attributes-list {
  margin: 0;
  padding-left: 18px;
  color: #444;
}

.jpa-required-attributes-list li {
  margin-bottom: 6px;
}

.jpa-required-attributes-footer {
  gap: 10px;
}

.jpa-required-attributes-go,
.jpa-required-attributes-close {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.jpa-required-attributes-go {
  background: #111!important;
  color: #fff!important;
  border: none!important;
}

.jpa-required-attributes-close {
  background: #fff!important;
  color: #111!important;
  border: 1px solid #ddd!important;
  font-size:1rem!important;
}

.jpa-attribute-section--highlight {
  outline: 2px solid #111;
  outline-offset: 6px;
  border-radius: 8px;
}

/* Quantidade */
.jpa-quantity-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.jpa-quantity-title h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #222;
}

.jpa-quantity-title p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.45;
}

.jpa-qty-table-wrap {
  border: 1px solid #e4ebe6;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.jpa-qty-table {
  width: 100%;
}

.jpa-qty-table-head,
.jpa-qty-table-row {
  display: grid;
  grid-template-columns: 42px minmax(140px, 1.2fr) minmax(120px, 1fr) minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
}

.jpa-qty-table-head {
  padding: 14px 18px;
  background: #f3f7f4;
  border-bottom: 1px solid #e4ebe6;
  color: #333;
  font-size: 14px;
  font-weight: 800;
}

.jpa-qty-table-body {
  display: flex;
  flex-direction: column;
}

.jpa-qty-table-wrap.is-collapsed .jpa-qty-table-row:not(:has(input:checked)) {
  display: none;
}

.jpa-qty-table-wrap.is-collapsed:not(:has(input:checked)) .jpa-qty-table-body {
  display: none;
}

.jpa-qty-table-wrap.is-collapsed:not(:has(input:checked)) .jpa-qty-table-head {
  display: none;
}

.jpa-qty-toggle-btn {
  width: 100%!important;
  display: flex!important;
  align-items: center!important;
  justify-content: center!important;
  gap: 8px!important;
  padding: 12px 18px!important;
  border: 0!important;
  border-top: 1px solid #e4ebe6!important;
  border-bottom: 1px solid #e4ebe6!important;
  background: #fff!important;
  color: #1f6b43!important;
  font-size: 14px!important;
  font-weight: 700!important;
  cursor: pointer!important;
  transition: background .2s ease, color .2s ease!important;
}

.jpa-qty-toggle-btn:hover {
  background: #f7fbf8!important;
  color: #1f8a55!important;
}

.jpa-qty-toggle-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -4px;
}

.jpa-qty-table-wrap.is-expanded .jpa-qty-toggle-arrow {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.jpa-qty-table-row {
  position: relative;
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #edf1ee;
  background: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.jpa-qty-table-row:last-child {
  border-bottom: 0;
}

.jpa-qty-table-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.jpa-qty-table-row:has(input:checked) {
  background: #f2fbf5;
  box-shadow: inset 0 0 0 1.5px #1f8a55;
  z-index: 1;
}

.jpa-qty-table-col--qty strong,
.jpa-qty-table-col--total strong {
  color: #222;
  font-size: 15px;
  font-weight: 700;
}

.jpa-qty-row-weight {
  color: #555;
  font-size: 13px;
  font-weight: 500;
}

.jpa-qty-table-col--unit,
.jpa-qty-row-unit {
  color: #555;
  font-size: 14px;
  font-weight: 600;
}

.jpa-qty-table-col--total {
  text-align: right;
}

.jpa-qty-table-col--unit {
  text-align: left;
}

.jpa-qty-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #c9d3cc;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: border-color .2s ease, background .2s ease;
}

.jpa-qty-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background .2s ease;
}

.jpa-qty-table-row:has(input:checked) .jpa-qty-radio {
  border-color: #1f8a55;
}

.jpa-qty-table-row:has(input:checked) .jpa-qty-radio::after {
  background: #1f8a55;
}

.jpa-qty-table-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #eef8f2;
  border-top: 1px solid #dcefe3;
  color: #1f6b43;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.jpa-qty-table-footer-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.jpa-custom-size-login-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff8e6;
  border: 1px solid #f0dfa8;
  font-size: 14px;
  line-height: 1.5;
  color: #5c4a12;
}

.jpa-custom-size-login-notice a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: #111;
  text-decoration: underline;
}

.jpa-custom-size-field input:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

#jpa-apply-custom-size:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.jpa-custom-size-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.jpa-custom-size-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.jpa-custom-size-field input {
  width: 100%;
  height: 52px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 15px;
  transition: 0.2s;
}

.jpa-custom-size-field input:focus {
  border-color: #111;
  outline: none;
}

#jpa-apply-custom-size {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

#jpa-apply-custom-size:hover {
  background: #333;
}

#jpa-custom-size-button {
  flex-shrink: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#jpa-custom-size-button:hover {
  border-color: #111;
  color: #111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.jpa-size-header .jpa-attr-title {
  margin: 0 0 6px;
}

#jpa-custom-qty-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

#jpa-custom-qty-button::before {
  content: "✎";
  font-size: 15px;
  color: #777;
}

#jpa-custom-qty-button:hover {
  border-color: #111;
  color: #111;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

#jpa-custom-qty-button:hover::before {
  color: #111;
}

/* MAIS OPÇÕES QUANTIDADE*/
.jpa-extra-option {
  display: none;
}

.jpa-qty-grid.is-expanded .jpa-extra-option {
  display: block;
}

.jpa-more-options {
  width: 100%!important;
  display: flex!important;
  justify-content: space-between!important;
  align-items: center!important;
  margin: 28px 0!important;
  padding: 18px 0!important;
  border: none!important;
  border-top: 1px solid #eee!important;
  background: transparent!important;
  font-size: 15px!important;
  font-weight: 700!important;
  color: #333!important;
  cursor: pointer!important;
}

.jpa-more-options strong {
  font-size: 18px;
  transition: transform .2s ease;
}

.jpa-more-options.is-open strong {
  transform: rotate(180deg);
}

/* UPLOAD DE ARTE */
.jpa-upload-box {
  width: 110px;
  height: 145px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.jpa-upload-box input[type="file"] {
  display: none;
}

.jpa-upload-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-size:12px;
}

.jpa-upload-placeholder small {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: #111;
}

.jpa-upload-filename {
  font-size: 12px;
  color: #111;
  font-weight: 700;
  word-break: break-word;
}

.jpa-upload-box.has-file {
  background: #f0fff4;
}

.jpa-pdf-preview {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: #fff;
}

#jpa-upload-progress-wrap {
  margin-top: 20px;
  background: #f1f1f1;
  border-radius: 999px;
  height: 14px;
  position: relative;
  overflow: hidden;
}

#jpa-upload-progress-bar {
  width: 0%;
  height: 100%;
  background: #08a8ff;
  border-radius: 999px;
  transition: width .2s ease;
}

#jpa-upload-progress-text {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

/* GABARITOS */
.jpa-template-resources {
  margin-top: 40px;
}

.jpa-resources-title {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
  color: #111;
}

.jpa-template-resources__card {
  padding: 28px;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  background: #fff;
}

.jpa-template-resources__heading {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.jpa-template-resources__description {
  margin: 0 0 22px;
  color: #666;
  font-size: 15px;
  line-height: 1.45;
}

.jpa-template-resources__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.jpa-template-resources__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.jpa-template-resources__download:hover {
  border-color: #111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

.jpa-template-resources__download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jpa-config-saved-cart-modal .jpa-modal-box {
  max-width: 560px;
}

.jpa-config-saved-cart-modal__downloads {
  margin-top: 8px;
}

.jpa-config-saved-cart-modal__footer {
  display: flex;
  justify-content: center;
  padding: 0 26px 26px;
  border-top: none;
}

.jpa-config-saved-cart-modal__cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s ease;
}

.jpa-config-saved-cart-modal__cart-link:hover {
  opacity: .88;
}

.jpa-template-resources__notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff8e8;
}

.jpa-template-resources__notice-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5a623;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
}

.jpa-template-resources__notice-text p {
  margin: 0 0 6px;
  color: #444;
  font-size: 14px;
  line-height: 1.45;
}

.jpa-template-resources__notice-text p:last-child {
  margin-bottom: 0;
}

.jpa-template-resources--highlight {
  outline: 2px solid #111;
  outline-offset: 8px;
  border-radius: 16px;
}

.jpa-template-ready-footer {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.jpa-template-ready-btn {
  height: 44px!important;
  padding: 0 22px!important;
  border-radius: 999px!important;
  font-size: 14px!important;
  font-weight: 700!important;
  cursor: pointer!important;
  transition: .2s ease!important;
}

.jpa-template-ready-btn--primary {
  border: none!important;
  background: #111!important;
  color: #fff!important;
}

.jpa-template-ready-btn--primary:hover {
  background: #333;
}

.jpa-template-ready-btn--secondary {
  border: 1px solid #ddd!important;
  background: #fff!important;
  color: #111!important;
}

.jpa-template-ready-btn--secondary:hover {
  border-color: #111;
}

.jpa-template-links {
  display: flex;
  align-items: center;
  gap: 46px;
  flex-wrap: wrap;
}

.jpa-template-link {
  font-family: 'Montserrat';
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #2C2C2B;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
}

.jpa-template-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 800;
  background: #fff;
}

.jpa-disabled {
  opacity: .35;
  pointer-events: none;
  filter: grayscale(1);
}

@media (max-width: 768px) {
  .jpa-art-row {
    grid-template-columns: 1fr;
  }

  .jpa-art-upload-card {
    width: 120px;
  }

  .jpa-art-status {
    flex-direction: column;
    gap: 8px;
  }

  .jpa-product-attributes .jpa-options,
  .jpa-product-attributes .jpa-options-wrap--collapsible .jpa-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
    margin-bottom: 32px;
  }

  .jpa-product-attributes .jpa-option {
    width: 100%;
    min-width: 0;
  }

  .jpa-product-attributes .jpa-option label {
    width: 100% !important;
    max-width: 100%;
  }

  .jpa-product-attributes .jpa-option--custom-size-approved label {
    min-width: 0;
    padding: 10px 12px;
  }

  .jpa-product-attributes .jpa-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
    padding: 8px;
    box-sizing: border-box;
  }

  .jpa-product-attributes .jpa-label {
    font-size: 13px;
    line-height: 1.25;
    word-break: break-word;
  }

  .jpa-quantity-header {
    flex-direction: column;
    align-items: stretch;
  }

  #jpa-custom-qty-button,
  #jpa-custom-size-button {
    align-self: flex-start;
  }

  .jpa-custom-size-fields {
    grid-template-columns: 1fr;
  }

  .jpa-qty-table-head {
    display: none;
  }

  .jpa-qty-table-row {
    grid-template-columns: 32px 1fr;
    grid-template-areas:
      "radio qty"
      "radio unit"
      "radio total";
    gap: 8px 12px;
    padding: 14px 16px;
  }

  .jpa-qty-table-col--radio {
    grid-area: radio;
    align-self: start;
    padding-top: 2px;
  }

  .jpa-qty-table-col--qty {
    grid-area: qty;
  }

  .jpa-qty-table-col--unit {
    grid-area: unit;
  }

  .jpa-qty-table-col--unit::before {
    content: "Valor unitário: ";
    color: #888;
    font-weight: 600;
  }

  .jpa-qty-table-col--total {
    grid-area: total;
    text-align: left;
  }

  .jpa-qty-table-col--total::before {
    content: "Valor total: ";
    color: #888;
    font-weight: 600;
  }

  .jpa-qty-grid{
    display: block;
  }

  .jpa-qty-grid .jpa-qty-item{
    margin-bottom:15px;
  }
}

.jpa-sample-product-card {
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fafafa;
}

.jpa-sample-product-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.jpa-sample-product-price {
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 700;
  color: #111;
}

.jpa-sample-product-price .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.jpa-sample-product-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}

/* ==========================================================================
   Botão Comprar / Assinar agora (#jpa-buy-button)
   ========================================================================== */
#jpa-buy-button.jpa-buy-button,
#jpa-buy-button.jpa-buy-button.elementor-button,
a#jpa-buy-button.jpa-buy-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  width: 100% !important;
  min-height: 52px;
  margin: 0;
  margin-top:15px;
  border: none !important;
  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#jpa-buy-button.jpa-buy-button:hover,
#jpa-buy-button.jpa-buy-button:focus {
  background: #111 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

#jpa-buy-button.jpa-buy-button .elementor-button-content-wrapper {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#jpa-buy-button.jpa-buy-button .elementor-button-text {
  color: #fff !important;
}

#jpa-buy-button.jpa-buy-button svg,
#jpa-buy-button.jpa-buy-button .elementor-button-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

body.psp-subscription-flow .estimate-shipping,
body.psp-subscription-flow #jpa-shipping-modal {
  display: none !important;
}

/* ==========================================================================
   Modal de estimativa de frete (.estimate-shipping)
   ========================================================================== */
.estimate-shipping{
  cursor:pointer!important;
}

.jpa-shipping-modal {
  padding: 20px;
  background: rgba(17, 17, 17, 0.52);
  backdrop-filter: blur(4px);
  animation: jpaShippingFadeIn 0.22s ease;
  font-family: "Montserrat", sans-serif;
}

#jpa-shipping-estimate-btn{
  border: 1px solid #000;
  background: #000;
  color: #FFF!important;
}

@keyframes jpaShippingFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.jpa-shipping-modal__box {
  max-width: 560px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  animation: jpaShippingSlideUp 0.28s ease;
  font-family: "Montserrat", sans-serif;
}

@keyframes jpaShippingSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.jpa-shipping-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid #efefef;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.jpa-shipping-modal__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.jpa-shipping-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  flex-shrink: 0;
}

.jpa-shipping-modal__header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.jpa-shipping-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px !important;
  background: #f3f3f3!important;
  border:0!important;
  color: #666!important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.jpa-shipping-modal__close:hover {
  background: #e9e9e9;
  color: #111;
}

.jpa-shipping-modal__body {
  padding: 22px 24px 24px;
  font-family: "Montserrat", sans-serif;
}

.jpa-shipping-modal__intro {
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

.jpa-shipping-estimate__cep-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.jpa-shipping-estimate__field {
  min-width: 0;
}

.jpa-shipping-estimate__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
}

.jpa-shipping-estimate__input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jpa-shipping-estimate__input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.jpa-shipping-estimate__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 50px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.jpa-shipping-estimate__btn:hover:not(:disabled) {
  opacity: 0.92;
}

.jpa-shipping-estimate__btn:active:not(:disabled) {
  transform: translateY(1px);
}

.jpa-shipping-estimate__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.jpa-shipping-estimate__btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: jpaShippingSpin 0.7s linear infinite;
}

.jpa-shipping-estimate__btn.is-loading .jpa-shipping-estimate__btn-label {
  visibility: hidden;
}

.jpa-shipping-estimate__btn.is-loading .jpa-shipping-estimate__btn-spinner {
  display: block;
  position: absolute;
}

@keyframes jpaShippingSpin {
  to { transform: rotate(360deg); }
}

.jpa-shipping-estimate__feedback {
  min-height: 0;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}

.jpa-shipping-estimate__feedback.is-loading {
  color: #555;
  padding-left: 22px;
  position: relative;
}

.jpa-shipping-estimate__feedback.is-loading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  border: 2px solid #ddd;
  border-top-color: #111;
  border-radius: 50%;
  animation: jpaShippingSpin 0.7s linear infinite;
}

.jpa-shipping-estimate__feedback.is-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 10px;
  padding: 10px 12px;
}

.jpa-shipping-estimate__results {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #efefef;
}

.jpa-shipping-estimate__results.is-hidden {
  display: none;
}

.jpa-shipping-estimate__results-head {
  margin-bottom: 12px;
}

.jpa-shipping-estimate__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #444;
  font-size: 12px;
  font-weight: 700;
}

.jpa-shipping-estimate__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.jpa-shipping-estimate__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 14px;
  border: 1.5px solid #ececec;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jpa-shipping-estimate__item.is-cheapest {
  border-color: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.jpa-shipping-estimate__item.is-pickup {
  background: #fbfbfb;
}

.jpa-shipping-estimate__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f3f3f3;
  color: #333;
  flex-shrink: 0;
}

.jpa-shipping-estimate__item.is-pickup .jpa-shipping-estimate__item-icon {
  background: #eef6ff;
  color: #175cd3;
}

.jpa-shipping-estimate__item-info {
  min-width: 0;
}

.jpa-shipping-estimate__item-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.jpa-shipping-estimate__item-label {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
}

.jpa-shipping-estimate__item-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.jpa-shipping-estimate__item-tag.is-free {
  background: #ecfdf3;
  color: #027a48;
}

.jpa-shipping-estimate__item-desc {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #777;
}

.jpa-shipping-estimate__item-price {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
  padding-top: 2px;
}

.jpa-shipping-estimate__item.is-free .jpa-shipping-estimate__item-price {
  color: #027a48;
}

.jpa-shipping-estimate__disclaimer {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #999;
}

@media (max-width: 560px) {
  .jpa-shipping-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .jpa-shipping-modal__box {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .jpa-shipping-estimate__cep-row {
    grid-template-columns: 1fr;
  }

  .jpa-shipping-estimate__btn {
    width: 100%;
  }

  .jpa-shipping-estimate__item {
    grid-template-columns: auto 1fr;
  }

  .jpa-shipping-estimate__item-price {
    grid-column: 2;
    padding-top: 0;
  }
}