.pci-wrapper,
.pci-wrapper *,
.pci-summary-card {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.pci-wrapper {
  width: 100%;
}

.pci-heading {
  margin-bottom: 20px;
}

.pci-heading h2 {
  margin: 0 0 6px;
  color: #20242a;
  font-size: 26px;
  font-weight: 800;
}

.pci-heading p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.pci-box {
  padding: 18px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
}

.pci-error {
  border-color: #ffb3b3;
  background: #fff5f5;
}

.pci-empty,
.pci-muted {
  color: #777;
}

.pci-format-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pci-format-card {
  overflow: hidden;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background: #fff;
}

.pci-format-header {
  min-height: 52px;
  padding: 0 22px;
  border-bottom: 1px solid #e7e7e7;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pci-format-header strong {
  color: #222;
  font-size: 15px;
  font-weight: 800;
}

.pci-upload-new-form {
  margin: 0;
}

.pci-upload-new-art {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.pci-upload-new-art:hover {
  background: #f3f3f3;
}

.pci-section {
  padding: 22px;
  border-bottom: 1px solid #eee;
}

.pci-section:last-child {
  border-bottom: 0;
}

.pci-section h4 {
  margin: 0 0 16px;
  color: #333;
  font-size: 15px;
  font-weight: 800;
}

.pci-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pci-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.pci-arts-list {
  display: flex;
  flex-direction: column;
}

.pci-art-row {
  display: grid;
  grid-template-columns: 130px 1fr 180px;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid #eee;
}

.pci-art-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pci-art-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pci-art-check input {
  width: 27px;
  height: 27px;
  margin: 0;
}

.pci-art-info small,
.pci-art-controls label {
  font-size: 14px;
  font-weight: 800;
  color: #333;
}

.pci-art-info span {
  font-size: 13px;
  color: #333;
}

.pci-art-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pci-art-qty {
  width: 100%;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 600;
}

.pci-proof-options {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pci-proof-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 16px;
  font-weight: 700;
  color: #444;

  line-height: 1;
}

.pci-proof-options input {
  width: 16px;
  height: 16px;
  margin: 0;
}

@media (max-width: 768px) {
  .pci-art-row {
    grid-template-columns: 1fr;
  }
}

.pci-art-preview {
  width: 120px;
  height: 140px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fafafa;
  position: relative;
}

.pci-art-preview a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pci-art-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  transform: scale(1.03);
  transform-origin: center;
}

.pci-art-preview span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #ef2b64;
  font-size: 11px;
  font-weight: 900;
}

.pci-art-details {
  min-width: 0;
}

.pci-art-code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.pci-art-code strong {
  color: #222;
  font-size: 15px;
  font-weight: 900;
}

.pci-square {
  width: 14px;
  height: 14px;
  border: 1px solid #bfbfbf;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pci-square::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #222;
}

.pci-art-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pci-art-meta-grid small {
  display: block;
  margin-bottom: 4px;
  color: #666;
  font-size: 12px;
  font-weight: 800;
}

.pci-art-meta-grid strong {
  display: block;
  color: #555;
  font-size: 13px;
  font-weight: 600;
}

.pci-art-controls label {
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 800;
}

.pci-art-controls input[type="number"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 14px;
}

.pci-proof-view {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pci-proof-view > span {
  width: 100%;
  color: #333;
  font-size: 13px;
  font-weight: 800;
}

.pci-radio-view {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  color: #777 !important;
  font-weight: 600 !important;
}

.pci-radio-view i {
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pci-radio-view.is-active i {
  border-color: #222;
}

.pci-radio-view.is-active i::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #222;
}

.pci-radio-view.is-active {
  color: #222 !important;
}

@media (max-width: 900px) {
  .pci-format-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
  }

  .pci-art-row {
    grid-template-columns: 1fr;
  }

  .pci-art-preview {
    width: 140px;
    height: 160px;
  }
}

#pci-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;
}

#pci-summary-unit {
  font-size: 15px;
  font-weight: bold;
  color: #2C2C2B;
}

#pci-summary-subtotal {
  font-size: 20px;
  font-weight: bold;
  color: #2C2C2B;
}

.pci-summary-formats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pci-summary-format {
    padding-bottom: 20px;
    border-bottom: 1px solid #ececec;
}

.pci-summary-card h3{
  margin-top:0;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pci-summary-format h4,
.pci-summary-proof-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pci-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 15px;
}

.pci-summary-line span {
    color: #666;
}

.pci-summary-line strong {
    font-weight: 700;
}

.pci-summary-grand-total {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 24px;
    font-size: 18px;
    font-weight: 700;
}

.pci-summary-proof-box {
  margin-top: 24px;
}

.pci-art-select {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #bdbdbd;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.pci-art-select:checked {
    border:3px solid #CECECE;
}

.pci-art-select:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 19px;
    height: 19px;
    background: #2f2f2f;
    border-radius: 3px;
}

.pci-proof-options input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;

    width: 20px;
    height: 20px;

    border: 2px solid #bdbdbd;
    border-radius: 50%;

    background: #fff;
    cursor: pointer;

    position: relative;

    margin: 0;
    flex-shrink: 0;
}

.pci-proof-options input[type="radio"]:checked {
    border-color: #2f2f2f;
    background: #2f2f2f;
}

.pci-proof-options input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.pci-proof-options label{
  font-weight: 400;
}