/* 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;
}

.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:50px;
}

.sup-json-wrap select{
    padding:20px;
    border:1px solid #CECECE;
    border-radius:15px;
    font-size:16px;
}

.jpa-options {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom:50px;
    margin-top:30px;
}

#jpa-unit-price{
    font-size:16px;
    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;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 16px;
  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: 16px;
  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-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-artes-text{
    font-family:Montserrat;
    font-size:16px;
}

.jpa-selected-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.jpa-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.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: 16px;
  line-height: 1.6;
  color: #444;
}

.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: 16px;
  background: #f4f4f4;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 42px;
}

.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: 16px;
  font-weight: 700;
  color: #111;
  margin-right: 10px;
}

.jpa-qty-card small {
  display: block;
  font-size: 16px;
  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: 14px;
  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: 16px;
  transition: .2s;
}

#jpa-custom-qty-input:focus {
  border-color: #111;
  outline: none;
}

/* FOOTER */
.jpa-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 20px 26px;
  border-top: 1px solid #eee;
}

/* 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);
}

/* Quantidade */
.jpa-quantity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.jpa-quantity-title h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

#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: 16px;
  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: 16px!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);
}

@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-option label{
    width:100%!important;
  }

  .jpa-image{
    width:100%!important;
    height:auto!important;
  }

  .jpa-quantity-header,
  .jpa-qty-grid{
    display: block;
  }

  .jpa-qty-grid .jpa-qty-item{
    margin-bottom:15px;
  }
}