/**handles:kl-upload**/
.page-wrapper {
  background-color: #EDEDED !important;
}

.header-main {
  display: none;
}
/* 
body.kl-upload-page .kl-custom-header {
  position: sticky;
  top: 0;
  z-index: 999;

  height: 64px;
  background: #fff;

  width: 100vw;
  margin-left: calc(50% - 50vw);
} */

body.kl-upload-page {
  padding-top: 64px;
}


/* Custom Header */
.kl-custom-header {
  height: 70px;
  width: 100%;
  left: 0;
  right: 0;
  background: #fff;
  position: fixed;
  top: 0;
  z-index: 999;
}

.kl-custom-header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.kl-header-logo {
  width: 151px;
  display: block;
}

@media (max-width: 480px) {
  .kl-header-logo {
    width: 100px;
  }
}

/* Button */
.kl-header-cart-btn {
  display: flex;
  justify-items: center;
  align-items: center;
  gap: 8px;
  background: #FF8A00 !important;
  color: #fff !important;
  padding: 10px 16px !important;
  border: none;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none;
  transition: background 0.2s ease;
}

.kl-header-cart-btn p {
  font-weight: 600;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0%;
  text-align: center;
  margin: 0;
  padding: 0;
}

.kl-header-cart-btn img {
  filter: brightness(0) invert(1);
}

.kl-header-cart-btn:hover {
  background: #e07a00;
}

.kl-header-cart-btn.disabled {
  background: #E0E0E0 !important;
  color: #9E9E9E !important;
  pointer-events: none;
  cursor: not-allowed;
}

.kl-header-cart-btn.disabled img {
  filter: invert(66%) sepia(2%) saturate(19%) hue-rotate(338deg) brightness(96%) contrast(88%) !important;
}

.kl-upload-wrap {
  max-width: 926px;
  margin: 100px auto 32px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
  padding-top: 0;
  position: relative;
}

.kl-upload-wrap .kl-upload-method-toggle {
  width: 100%;
  max-width: 878px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 6px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  box-sizing: border-box;
}

.kl-upload-wrap .kl-upload-method-toggle button {
  flex: 1 1 0%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #6B7280 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1;
  box-shadow: none !important;
  outline: none !important;
  appearance: none;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.kl-upload-wrap .kl-upload-method-toggle button.active {
  background: #0617CD !important;
  border-color: #0617CD !important;
  color: #FFFFFF !important;
}

.kl-upload-wrap[data-kl-method="nbd"] #kl-upload-method-upload-panel {
  display: none !important;
}

.kl-upload-wrap[data-kl-method="nbd"] #kl-upload-method-nbd-panel {
  display: block !important;
}

.kl-upload-wrap .kl-upload-method-toggle button:not(.active):hover {
  background: #E5E7EB !important;
  color: #111827 !important;
}

.kl-upload-wrap .kl-upload-pick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FF8A00 !important;
  color: #fff !important;
  padding: 10px 16px !important;
  border: none;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none;
  transition: background 0.2s ease;
}

.kl-upload-wrap .kl-upload-pick-btn:hover {
  background: #e07a00 !important;
}

.kl-upload-wrap .kl-nbd-panel {
  max-width: 878px;
  margin: 2px auto 16px auto;
}

.kl-upload-wrap .kl-nbd-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  align-items: stretch;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(140deg, #FFFFFF 0%, #F7F8FF 52%, #FFF8EF 100%);
  border: 1px solid #E6EAF7;
  border-radius: 16px;
  overflow: hidden;
}

.kl-upload-wrap .kl-nbd-card::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -84px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(6, 23, 205, 0.11) 0%, rgba(6, 23, 205, 0) 68%);
  pointer-events: none;
}

.kl-upload-wrap .kl-nbd-card::after {
  content: "";
  position: absolute;
  left: -74px;
  bottom: -116px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 138, 0, 0.12) 0%, rgba(255, 138, 0, 0) 70%);
  pointer-events: none;
}

.kl-upload-wrap .kl-nbd-left {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
}

.kl-upload-wrap .kl-nbd-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
  border: 1px solid #E3E9FF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.kl-upload-wrap .kl-nbd-right::before {
  content: "";
  position: absolute;
  inset: auto -18px -22px auto;
  width: 132px;
  height: 132px;
  background: radial-gradient(circle at center, rgba(255, 138, 0, 0.25) 0%, rgba(255, 138, 0, 0) 72%);
  pointer-events: none;
}

.kl-upload-wrap .kl-nbd-right::after {
  content: none;
}

.kl-upload-wrap .kl-nbd-right img {
  width: min(100%, 258px);
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.kl-upload-wrap .kl-nbd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 23, 205, 0.08);
  color: #0617CD;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.kl-upload-wrap .kl-nbd-title {
  font-weight: 700;
  font-size: 30px;
  color: #111827;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  max-width: 560px;
}

.kl-upload-wrap .kl-nbd-desc {
  font-size: 15px;
  color: #4B5563;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 560px;
}

.kl-upload-wrap .kl-nbd-steps {
  counter-reset: klNbdStep;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 560px;
}

.kl-upload-wrap .kl-nbd-step {
  counter-increment: klNbdStep;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #374151;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #ECEFF7;
  backdrop-filter: blur(2px);
}

.kl-upload-wrap .kl-nbd-step-dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #FF8A00;
  box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.kl-upload-wrap .kl-nbd-step-dot::before {
  content: counter(klNbdStep);
}

.kl-upload-wrap .kl-nbd-left .kl-upload-pick-btn {
  min-height: 44px;
  padding-left: 18px !important;
  padding-right: 18px !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 20px rgba(255, 138, 0, 0.25);
}

@media (max-width: 640px) {
  .kl-upload-wrap .kl-nbd-card {
    flex-direction: column;
    display: flex;
    padding: 14px;
    gap: 14px;
  }
  .kl-upload-wrap .kl-nbd-right {
    min-height: 170px;
  }
  .kl-upload-wrap .kl-nbd-title {
    font-size: 28px;
  }
  .kl-upload-wrap .kl-nbd-desc {
    font-size: 14px;
  }
  .kl-upload-wrap .kl-nbd-step {
    font-size: 14px;
    align-items: flex-start;
    line-height: 1.4;
  }
}

/* .kl-dropzone {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  width: 878px;
  height: 378px;
  box-sizing: border-box;
  margin: 0 auto 12px auto;
  background-color: #fafafa;

  border-radius: 4px; 

  background-image:
    repeating-linear-gradient(to right, #9E9E9E 0 10px, transparent 10px 20px),
    repeating-linear-gradient(to bottom, #9E9E9E 0 10px, transparent 10px 20px),
    repeating-linear-gradient(to left, #9E9E9E 0 10px, transparent 10px 20px),
    repeating-linear-gradient(to top, #9E9E9E 0 10px, transparent 10px 20px);

  background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
  background-position: top, right, bottom, left;
  background-repeat: no-repeat;
} */

.kl-dropzone {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  box-sizing: border-box;
  width: 878px;
  height: 378px;
  max-width: 100%;
  margin: 0 auto 12px auto;
  background-color: #fafafa;
  border-radius: 4px;
  border: 1px dashed #9E9E9E;
}

.kl-dropzone.drag {
  border-color: #9E9E9E;
  background: #fafafa;
}

#kl-files {
  display: block;
  margin: 0 auto 10px auto;
}

.kl-filelist {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.kl-filelist li {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f1f1;
}

.kl-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.kl-status {
  margin-top: 8px;
  min-height: 20px;
}

.kl-upload-link {
  margin-top: 6px;
}

.kl-upload-link .button {
  font-size: 12px;
  padding: 4px 8px;
}

.kl-upload-header {
  background: #0617CD;
  color: #fff;
  border-radius: 18px 18px 0 0;
  padding: 32px 0 18px 0;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.kl-upload-subtitle {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  margin-top: 6px;
  margin-bottom: 0;
  text-align: center;
}

.kl-upload-spec-card {
  background: #fff;
  border: 1px solid #EDEDED;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 2;
  width: 878px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.kl-upload-spec-info {
  font-weight: 600;
  font-size: 20px;
  line-height: 120%;
  color: #616161;
}

.kl-upload-spec-info span {
  font-size: 14px;
  color: #757575;
  font-weight: 400;
}

.kl-upload-spec-price {
  display: flex;
  text-align: right;
  font-size: 14px;
  color: #757575;
  font-weight: 600;
  gap: 6px;
}

.kl-upload-spec-price span {
  font-size: 12px;
  color: #9E9E9E;
  font-weight: 400;
}

.kl-upload-spec-price .kl-upload-spec-price-total {
  font-weight: 600;
  font-size: 14px;
  color: #757575;
}

.kl-upload-spec-price .kl-upload-spec-price-total span {
  font-weight: 700 !important;
  font-size: 10px;
  color: #FF8A00;
  margin-left: 10px;
}

.kl-upload-info-box {
  background: #EFF6FF;
  border: 1px solid #BEDBFF;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 12px 24px 12px;
  display: flex;
  align-items: start;
  gap: 10px;
  width: 878px;
  max-width: 100%;
  box-sizing: border-box;
}

.kl-upload-info-box-title {
  display: grid;
  gap: 4px;
}

.kl-upload-info-box strong {
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0px;
  color: #1C398E;
}

.kl-upload-info-box span {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0px;
  color: #1447E6;
}

.kl-upload-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px;
  box-sizing: border-box;
}

.kl-upload-filecount {
  color: #ff8900;
  font-weight: 700;
}

.kl-upload-file-clause {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 3px;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #666666;
}

.kl-upload-drop-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
}

.kl-upload-drop-illustration img {
  width: 180px;
  height: 180px;
  margin-bottom: 12px;
  max-width: 100%;
  height: auto;
}

.kl-upload-drop-illustration .main-text {
  font-weight: 500;
  font-size: 20px;
  line-height: 120%;
  margin-bottom: 16px;
}

.kl-upload-drop-illustration .sub-text {
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  line-height: 150%;
}

.kl-upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 12px;
}
/* 
.kl-upload-skip-prefix {
  color: #9E9E9E;
  margin-right: 4px;
} */

.kl-upload-skip-link {
  display: flex;
  text-align: left;
  color: #757575;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.kl-upload-skip-link:hover {
  color: #FF8A00;
}

@media (max-width: 1024px) {
  .kl-upload-wrap {
    box-sizing: border-box;
  }

  .kl-dropzone,
  .kl-upload-spec-card,
  .kl-upload-info-box,
  .kl-upload-file {
    width: 100%;
    max-width: 878px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  .kl-upload-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .kl-dropzone,
  .kl-upload-spec-card,
  .kl-upload-info-box {
    width: 100%;
    max-width: 878px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .kl-upload-header {
    font-size: 1.2rem;
    padding: 18px 0 10px 0;
  }

  .kl-upload-spec-info {
    font-size: 16px;
  }

  .kl-upload-spec-price {
    font-size: 12px;
  }

  .kl-upload-file {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .kl-upload-file>div {
    width: auto !important;
    margin: 0 !important;
  }

  .kl-upload-drop-illustration img {
    width: 100px;
    height: auto;
  }
}

@media (max-width: 1024px) {
  .kl-upload-spec-card {
    flex-wrap: wrap;
  }

  .kl-dropzone {
    height: 320px;
  }

  .kl-upload-spec-info {
    font-size: 18px;
  }

  .kl-upload-spec-price {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .kl-upload-spec-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .kl-upload-spec-price {
    width: 100%;
    text-align: left;
  }

  .kl-dropzone {
    height: auto;
    min-height: 240px;
    padding: 18px;
  }

  .kl-upload-drop-illustration img {
    width: 120px;
    height: auto;
  }

  .kl-upload-drop-illustration .main-text {
    font-size: 15px;
    text-align: center;
  }

  .kl-upload-drop-illustration .sub-text {
    font-size: 10px;
    text-align: center;
  }

  .kl-upload-actions {
    flex-direction: column-reverse;
    gap: 16px;
  }
/* 
  .kl-upload-actions .kl-header-right {
    width: 100%;
  } */

  .kl-upload-actions .kl-header-cart-btn {
    width: 100%;
    justify-content: center;
  }

  .kl-upload-skip-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .kl-upload-header {
    font-size: 20px;
    padding: 16px 10px 10px 10px;
  }

  .kl-upload-subtitle {
    font-size: 12px;
  }

  .kl-upload-spec-info {
    font-size: 15px;
  }

  .kl-upload-spec-info span {
    font-size: 12px;
  }

  .kl-upload-spec-price {
    display: flex;
    align-items: center;
    font-size: 12px;
  }

  .kl-upload-info-box svg {
    width: 45px;
  }

  .kl-upload-info-box-title strong {
    font-size: 14px;
  }

  .kl-upload-info-box-title span {
    font-size: 10px;
  }

  /* .kl-upload-file > div {
    width: 100% !important; 
  } */
  .kl-upload-file-clause {
    font-size: 12px;
  }

  .kl-dropzone {
    min-height: 220px;
    padding: 16px;
  }

  .kl-upload-drop-illustration img {
    width: 96px;
    height: auto;
  }

  .kl-upload-skip-link {
    font-size: 12px !important;
  }
}

/* Validation Success UI */
.kl-val-success-card {
  width: 100%;
  text-align: left;
  display: flex !important;
  flex-direction: column !important;
  height: 50vh;
  overflow: auto;
}

.kl-val-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px; /* for scrollbar spacing */
}

/* Custom scrollbar for webkit */
.kl-val-scroll-content::-webkit-scrollbar {
  width: 6px;
}

.kl-val-scroll-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.kl-val-scroll-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.kl-val-header {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.kl-val-subtext {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 20px;
}

/* Success Banner */
.kl-val-banner {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0px 24px 16px 24px;
}

.kl-val-banner-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.kl-val-banner-content h4 {
  margin: 0;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  letter-spacing: 0px !important;
  color: #166534;
}

.kl-val-banner-content p {
  margin: 0;
  font-size: 12px !important;
  color: #15803D !important;
  line-height: 1.4;
}

/* Error Banner */
.kl-val-banner-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.kl-val-banner-error .kl-val-banner-content h4 {
  color: #991B1B;
}

.kl-val-banner-error .kl-val-banner-content p {
  color: #B91C1C;
}

/* Success Banner */
.kl-val-banner-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}

.kl-val-banner-success .kl-val-banner-content h4 {
  color: #166534;
}

.kl-val-banner-success .kl-val-banner-content p {
  color: #15803D;
}

.kl-val-item-error {
  background: #FEF2F2 !important;
}

.kl-val-item-error .kl-val-item-left {
  color: #991B1B;
}

.kl-val-error-text {
  color: #DC2626 !important;
}

.kl-val-info-box {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  margin: 0px 24px 16px 24px;
}

.kl-val-info-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  display: block;
}

.kl-val-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.kl-val-grid-item {
  font-size: 12px;
  color: #6B7280;
  /* Gray-500 */
}

.kl-val-grid-item strong {

  color: #111;
  font-weight: 500;
}

/* Result List */
.kl-val-label {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 0 24px 16px 24px;
  display: block;
}

.kl-val-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 24px 16px 24px;
}

.kl-val-item {
  background: #F0FDF4;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.kl-val-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #064E3B;
  /* Green-900 */
  font-weight: 600;
}

.kl-val-item-right {
  color: #166534;
  font-weight: 600;
}

/* Disclaimer */
.kl-val-disclaimer {
  background: #FFFBEB;
  /* Amber-50 */
  border: 1px solid #FDE68A;
  /* Amber-200 */
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 24px 16px 24px;
}

.kl-val-disc-icon {
  color: #D97706;
  /* Amber-600 */
  flex-shrink: 0;
  margin-top: 2px;
}

.kl-val-disc-content h5 {
  margin: 0 0 4px 0;
  font-weight: 400 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  letter-spacing: 0px;
  color: #7B3306;
}

.kl-val-disc-content p {
  margin: 0;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
  letter-spacing: 0px !important;
  color: #B45309 !important;
}

.kl-val-actions {
  display: flex;
  gap: 12px;
  position: sticky;
  bottom: 0;
  background: white;
  z-index: 10;
  padding: 16px 24px;
  border-top: 1px solid #E5E7EB;
}

.kl-btn-outline {
  flex: 1;
  padding: 12px !important;
  border: 1px solid #D1D5DB !important;
  background: #fff !important;
  border-radius: 6px !important;
  color: #374151 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.kl-btn-primary {
  flex: 1;
  padding: 12px !important;
  border: none !important;
  background: #FF8A00 !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer;
}

.kl-btn-primary:hover {
  background: #E67C00;
}

/* Upload Reset Icon */
.kl-reset-icon-svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   PREVIEW DESIGN MODAL
   ============================================ */

body.kl-modal-open {
  overflow: hidden !important;
}

.kl-preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.5);
}

.kl-preview-modal.active {
  display: flex;
}

.kl-preview-modal-container {
  position: relative;
  width: 1201px;
  height: 838px;
  max-width: 95vw;
  max-height: 95vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: #F5F5F5;
  border-radius: 10px;
  overflow: hidden;
}

/* Header */
.kl-preview-header {
  display: flex;
  height: 88px !important;
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: #FF8A00 !important;
  color: white !important;
}


.kl-preview-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kl-preview-header-icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kl-icon-help {
  color: white;
  width: 24px;
  height: 24px;
}

.kl-preview-header-text h3 {
  margin: 0;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  line-height: 1 !important;
}

.kl-preview-header-text p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.kl-preview-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}


.kl-preview-zoom-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 6px;
  border-radius: 6px;
}

.kl-preview-zoom-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: white !important;
  color: #FF8900 !important;
  border-radius: 4px !important;
  font-size: 18px !important;
  font-weight: bold !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 0 !important;
}

.kl-preview-zoom-btn:hover {
  background: #f0f0f0;
}

.kl-preview-zoom-level {
  min-width: 50px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.kl-preview-close-btn {
  width: 36px;
  height: 32px;
  border: none;
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  font-size: 29px !important;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.kl-preview-close-btn:hover {
  background: #D56C00;
}

/* Body Layout */
.kl-preview-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Canvas Area */
.kl-preview-canvas-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: auto;
}

.kl-preview-canvas {
  flex: 1;
  position: relative;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}

.kl-preview-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

/* ============================================
   SHAPE-BASED AUTO CROP
   ============================================ */

/* Preview image wrapper */
.kl-shape-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: 90%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.kl-shape-wrapper.grabbing {
  cursor: grabbing;
}

.kl-shape-wrapper img.kl-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  max-height: none;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  pointer-events: none;
  will-change: transform;
}

.kl-shape-wrapper.kl-shape-circle {
  aspect-ratio: 1 / 1;
  clip-path: circle(50%);
  border-radius: 50%;
}

.kl-shape-wrapper.kl-shape-square {
  aspect-ratio: 1 / 1;
  clip-path: inset(0 round 6px);
  border-radius: 6px;
}

.kl-shape-wrapper.kl-shape-rectangle {
  clip-path: inset(0 round 6px);
  border-radius: 6px;
}

.kl-shape-wrapper.kl-shape-iregular {
  clip-path: none;
}
.kl-shape-wrapper.kl-shape-iregular img.kl-preview-image {
  object-fit: contain;
}

.kl-shape-wrapper .kl-preview-cut-line {
  position: absolute;
  inset: 0;
  border: 2px dashed #DC2626;
  pointer-events: none;
  z-index: 2;
}

.kl-shape-wrapper .kl-preview-safe-zone {
  position: absolute;
  inset: 1%;
  border: 2px dashed #16A34A;
  pointer-events: none;
  z-index: 2;
}

.kl-shape-circle .kl-preview-cut-line,
.kl-shape-circle .kl-preview-safe-zone {
  border-radius: 50%;
}

.kl-shape-square .kl-preview-cut-line,
.kl-shape-rectangle .kl-preview-cut-line {
  border-radius: 6px;
}
.kl-shape-square .kl-preview-safe-zone,
.kl-shape-rectangle .kl-preview-safe-zone {
  border-radius: 4px;
}


.kl-conf-thumb.kl-shape-circle {
  clip-path: circle(50%);
  border-radius: 50%;
  object-fit: cover;
}
.kl-conf-thumb.kl-shape-square,
.kl-conf-thumb.kl-shape-rectangle {
  border-radius: 6px;
  object-fit: cover;
}

/* === Quick Tips (Shared Styles) === */
.kl-preview-tips-icon {
  font-size: 18px;
}

.kl-preview-tips-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kl-preview-tips-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600; 
}

.kl-preview-tips-title.cl-red {
  color: #DC2626;
  text-decoration: underline;
  text-decoration-color: #DC2626;
  text-underline-offset: 3px;
}

.kl-preview-tips-title.cl-green {
  color: #16A34A;
  text-decoration: underline;
  text-decoration-color: #16A34A;
  text-underline-offset: 3px;
}

.kl-tips-dash {
  flex: 1;
  width: auto;
  min-width: 40px;
  height: 0;
  border-top: 2px dashed;
  opacity: 1;
}

.kl-tips-dash.red {
  border-color: #DC2626;
}

.kl-tips-dash.green {
  border-color: #16A34A;
}

.kl-preview-tips p {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  color: #4B5563;
  line-height: 1.4;
}

.kl-preview-tips-sidebar p {
  margin: 0;
  font-size: 10px !important;
  font-weight: 400;
  color: #4B5563 !important;
}

.kl-preview-tips {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 402px;
  z-index: 100;
  border: 1px solid #E5E7EB;
}

.kl-preview-tips .kl-preview-tips-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
  color: #374151;
  font-size: 15px;
  border-bottom: 1px solid #F3F4F6;
  padding-bottom: 12px;
}

.kl-preview-tips .kl-preview-tips-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.kl-preview-tips .kl-preview-tips-close {
  margin-left: auto;
  background: none !important;
  border: none;
  font-size: 21px !important;
  cursor: pointer;
  color: #C2C2C2 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* === Sidebar Quick Tips === */
.kl-preview-tips-sidebar {
  position: relative;
  width: 100%;
  background: #EFF6FF;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #BFDBFE;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.kl-preview-tips-sidebar .kl-preview-tips-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1E3A8A;
  font-size: 14px;
  border-bottom: none;
  padding-bottom: 0;
  flex-shrink: 0;
}

.kl-preview-tips-sidebar .kl-preview-tips-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  justify-content: space-between;
  overflow: hidden;
}

.kl-preview-tips-sidebar .kl-preview-tips-row {
  gap: 4px;
}

.kl-preview-tips-sidebar .kl-preview-tips-title {
  margin-bottom: 2px;
}

.kl-preview-tips-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

.kl-cut-line-indicator {
  width: 40px;
  height: 0;
  border-top: 2px dashed #DC2626;
}

.kl-safe-zone-indicator {
  width: 40px;
  height: 0;
  border-top: 2px dashed #16A34A;
}

.kl-preview-tips-item p {
  margin: 0;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
}

/* Sidebar */
.kl-preview-sidebar {
  width: 330px;
  background: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid #E5E7EB;
  border-radius: 0 10px 10px 0;
}

.kl-preview-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kl-preview-sidebar-label {
  font-size: 14px;
  font-weight: 700;
  color: #364153;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kl-preview-sidebar-label::before {
  content: '';
  width: 3px;
  height: 16px;
  background: #FF8A00;
  border-radius: 2px;
}

.kl-preview-sidebar-input {
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
}

.kl-preview-spec-row {
  align-items: center;
  justify-content: space-between;
}

.kl-preview-spec-label {
  font-size: 12px;
  font-weight: 600;
  color: #666666;
}

.kl-preview-spec-value {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  flex: 1;
  /* Fill space */
  justify-content: flex-start;
}

.kl-preview-spec-icon {
  font-size: 16px;
  color: #F59E0B;
  /* Yellow-ish orange */
  display: flex;
  align-items: center;
}

.kl-preview-spec-icon {
  font-size: 16px;
}

/* Size Inputs */
.kl-preview-size-inputs {
  display: flex !important;
  gap: 10px;
  /* Space between inputs */
  align-items: center;
}

.kl-preview-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.kl-preview-size-input {
  /* flex: 1; removed, handled by wrapper flex */
  width: 100%;
  padding: 10px 12px;
  padding-right: 30px !important;
  /* Space for suffix */
  background: #F9FAFB;
  border: 1px solid #F3F4F6 !important;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  outline: none;
  font-weight: 500;
  transition: all 0.2s;
}

.kl-preview-input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9E9E9E;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

.kl-preview-size-input:read-only {
  color: #9E9E9E;
  background-color: #F5F5F5;
  cursor: default;
}

.kl-preview-size-input:focus {
  background: white;
  border-color: #FF8A00;
  outline: none;
}

.kl-preview-size-separator {
  font-size: 12px;
  color: #9CA3AF;
}

.kl-preview-confirm-btn {
  padding: 12px !important;
  background: #0C1FFF !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
  width: 100%;
}

/* Responsive Design for Preview Modal */

@media (max-width: 1024px) {
  .kl-preview-modal-container {
    width: 90vw;
    height: 90vh;
    max-width: 90vw;
    max-height: 90vh;
  }

  .kl-preview-header {
    padding: 20px 24px;
    height: 70px !important;
  }

  .kl-preview-header-text h3 {
    font-size: 18px !important;
  }

  .kl-preview-header-text p {
    font-size: 11px;
  }

  .kl-preview-sidebar {
    width: 280px;
    padding: 16px;
  }

  .kl-preview-canvas-wrapper {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .kl-preview-modal-container {
    width: 95vw;
    height: 95vh;
    border-radius: 8px;
  }

  .kl-preview-header {
    flex-wrap: wrap;
    padding: 16px 20px;
    height: auto !important;
    min-height: 60px;
  }

  .kl-preview-header-left {
    flex: 1;
    min-width: 0;
  }

  .kl-preview-header-icon-box {
    width: 32px;
    height: 32px;
  }

  .kl-icon-help {
    width: 20px;
    height: 20px;
  }

  .kl-preview-header-text h3 {
    font-size: 16px !important;
  }

  .kl-preview-header-text p {
    font-size: 10px;
    display: none; 
  }

  .kl-preview-header-right {
    gap: 8px;
  }

  .kl-preview-zoom-group {
    padding: 3px 5px;
  }

  .kl-preview-zoom-btn {
    width: 24px;
    height: 24px;
    font-size: 16px !important;
  }

  .kl-preview-zoom-level {
    min-width: 40px;
    font-size: 12px;
  }

  .kl-preview-close-btn {
    width: 28px;
    height: 28px;
    font-size: 24px !important;
  }

  .kl-preview-body {
    flex-direction: column;
  }

  .kl-preview-canvas-wrapper {
    padding: 12px;
    flex: 1;
    overflow: auto;
  }

  .kl-preview-canvas {
    min-height: 300px;
  }

  .kl-preview-image {
    max-width: 100%;
    max-height: 100%;
  }

  .kl-preview-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid #E5E7EB;
    border-radius: 0;
    padding: 16px;
    gap: 16px;
    max-height: 350px;
    overflow-y: auto;
  }

  .kl-preview-sidebar-label {
    font-size: 13px;
  }

  .kl-preview-sidebar-input {
    padding: 8px 10px;
    font-size: 13px;
  }

  .kl-preview-spec-value {
    padding: 8px 10px;
    font-size: 13px;
  }

  .kl-preview-size-input {
    padding: 8px 10px;
    font-size: 13px;
  }

  .kl-preview-confirm-btn {
    padding: 10px !important;
    font-size: 11px !important;
  }

  /* Tips sidebar */
  .kl-preview-tips-sidebar {
    height: auto;
    min-height: 150px;
  }

  .kl-preview-tips-sidebar .kl-preview-tips-header {
    font-size: 13px;
  }

  .kl-preview-tips-sidebar .kl-preview-tips-content {
    flex-direction: column;
    gap: 10px;
  }

  .kl-preview-tips-title {
    font-size: 9px;
  }

  .kl-preview-tips-sidebar p {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .kl-preview-modal-container {
    width: 80vw;
    height: 75vh;
    border-radius: 12px;
  }

  .kl-preview-header {
    padding: 12px 16px;
    min-height: 56px;
  }

  .kl-preview-header-left {
    gap: 10px;
  }

  .kl-preview-header-icon-box {
    width: 28px;
    height: 28px;
  }

  .kl-icon-help {
    width: 18px;
    height: 18px;
  }

  .kl-preview-header-text h3 {
    font-size: 12px !important;
  }

  .kl-preview-zoom-btn {
    width: 22px;
    height: 22px;
    font-size: 14px !important;
  }

  .kl-preview-zoom-level {
    min-width: 35px;
    font-size: 11px;
  }

  .kl-preview-close-btn {
    width: 26px;
    height: 26px;
    font-size: 22px !important;
  }

  .kl-preview-canvas-wrapper {
    padding: 10px;
  }

  .kl-preview-canvas {
    min-height: 100px;
  }

  .kl-preview-sidebar {
    padding: 12px;
    gap: 12px;
  }

  .kl-preview-sidebar-label {
    font-size: 12px;
  }

  .kl-preview-sidebar-label::before {
    width: 2px;
    height: 14px;
  }

  .kl-preview-sidebar-input {
    padding: 7px 9px;
    font-size: 12px;
  }

  .kl-preview-spec-label {
    font-size: 11px;
  }

  .kl-preview-spec-value {
    padding: 7px 9px;
    font-size: 12px;
  }

  .kl-preview-size-input {
    padding: 7px 9px;
    padding-right: 25px !important;
    font-size: 12px;
  }

  .kl-preview-input-suffix {
    right: 9px;
    font-size: 12px;
  }

  .kl-preview-confirm-btn {
    padding: 9px !important;
    font-size: 10px !important;
  }

  /* Tips sidebar - More compact */
  .kl-preview-tips-sidebar {
    padding: 10px 12px;
    min-height: 120px;
    margin-top: 12px;
  }

  .kl-preview-tips-sidebar .kl-preview-tips-header {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .kl-preview-tips-icon {
    font-size: 16px;
  }

  .kl-preview-tips-sidebar .kl-preview-tips-content {
    gap: 8px;
  }

  .kl-preview-tips-title {
    font-size: 8px;
  }

  .kl-preview-tips-sidebar p {
    font-size: 8px;
    line-height: 1.3;
  }

  .kl-tips-dash {
    min-width: 30px;
  }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
  .kl-preview-header {
    padding: 10px 12px;
    min-height: 52px;
  }

  .kl-preview-header-text h3 {
    font-size: 13px !important;
  }

  .kl-preview-zoom-level {
    min-width: 30px;
    font-size: 10px;
  }

  .kl-preview-sidebar {
    padding: 10px;
    gap: 10px;
  }

  .kl-preview-tips-sidebar {
    padding: 8px 10px;
  }
}

/* Modal Styling */
.kl-upload-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999999;
  overflow: hidden;
  touch-action: none;
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.kl-upload-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kl-upload-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  pointer-events: auto;
  z-index: 999998;
}

.kl-upload-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 512px;
  padding: 24px 0px !important;
  gap: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
  z-index: 999999;
}

@keyframes slideIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.kl-upload-modal-header {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 0px 24px;
}

.kl-upload-modal-header p {
  font-weight: 400;
  font-size: 14px !important;
  line-height: 20px !important;
  letter-spacing: 0px;
  margin-bottom: 0 !important;
}

.kl-upload-modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kl-upload-modal-title-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kl-upload-modal-header h3 {
  margin: 0;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #111 ;
}

.kl-upload-modal-close {
  background: none !important;
  border: none;
  cursor: pointer;
  padding: 0 !important;
  color: #0A0A0A !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.kl-upload-modal-close:hover {
  color: #111;
}

.kl-upload-modal-body {
  flex: 0 1 auto;
}

.kl-upload-drop-zone {
  border: 2px dashed #D1D5DB;
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0px 24px;
}

.kl-upload-drop-zone:hover {
  border-color: #FF8A00;
  background-color: #FFF8F1;
}

.kl-upload-drop-text {
  margin-bottom: 0 !important;
  color: #364153;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0px;
  text-align: center;
}

.kl-upload-drop-subtext {
  margin: 0;
  font-size: 13px;
  color: #6B7280;
}

.kl-modal-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.kl-upload-pick-btn {
  background: #FF8900 !important;
  color: white;
  border: none;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kl-upload-pick-btn:hover {
  background: #E67E00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 138, 0, 0.3);
}

.kl-upload-pick-btn:active {
  transform: translateY(0);
}

.kl-upload-pick-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* requirement */
.kl-requirements-box {
  display: grid !important;
  padding: 16px;
  background: transparent;
  border-radius: 8px;
  border: 1px solid #D1D5DC;
  gap: 12px;
  margin: 0px 24px;
}

.kl-requirements-title {
  display: flex;
  justify-items: center;
  align-items: center;
  gap: 10px;
}

.kl-requirements-title img {
  width: 12px;
  height: 15px;
}

.kl-requirements-title h4 {
  color: #0A0A0A;
  font-weight: 600 !important;
  font-size: 13px !important;
  line-height: 16px !important;
  letter-spacing: 0px ;
  margin: 0 !important;
}

.kl-requirements-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kl-requirement-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.kl-requirement-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF8A00;
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}

.kl-requirement-data {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kl-requirement-data strong {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.kl-requirement-data span {
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .kl-requirements-box {
    margin-top: 20px;
    padding: 12px;
  }
}

/* File Card & Tips */
.kl-tip-card {
  background: #F9F9FB;
  border-radius: 12px;
  padding: 12px 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  text-align: left;
  width: 100%;
  margin-bottom: 14px;
  box-sizing: border-box;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.10);
}

.kl-tip-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 6px;
  background: #FF8A00;
  border-radius: 0 4px 4px 0;
  display: none;
}

.kl-tip-accent {
  position: absolute;
  left: 0;
  top: 30%;
  width: 6px;
  height: 28px;
  background: #FF8A00;
  border-radius: 0 4px 4px 0;
}

.kl-tip-left-pill {
  width: 8px;
  background: #FF8A00;
  border-radius: 0 7px 7px 0;
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  height: 28px;
}

.kl-tip-content {
  flex: 1;
}

.kl-tip-header {
  display: flex;
  align-items: start;
  gap: 8px;
  margin-bottom: 4px;
}

.kl-tip-header strong {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: #404040;
}

.kl-tip-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 400;
  font-size: 10px;
  line-height: 16px;
  color: #616161;
}

/* File Card */
.kl-file-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.kl-file-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kl-file-icon-box {
  width: 38px;
  height: 38px;
  background: #A3D6FF;
  border: 1px solid #453E711A;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kl-file-icon-box svg,
.kl-file-icon-box img {
  width: 32px;
  height: 32px;
}

.kl-file-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.kl-file-name {
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  color: #0A0A0A;
}

.kl-file-size {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #6A7282;
}

.kl-file-edit-btn {
  background: white !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 6px !important;
  padding: 6px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0A0A0A !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.kl-validate-btn {
  width: -webkit-fill-available !important;
  padding: 12px !important;
  border: 0 !important;
  background: #FF8A00 !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  color: #fff !important;
  cursor: pointer !important;
  margin: 0px 24px;
}

/* Responsive Modal */
@media (max-width: 640px) {
  .kl-upload-modal-content {
    max-width: 90%;
    padding: 20px;
    gap: 16px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .kl-upload-modal-header h3 {
    font-size: 16px;
  }

  .kl-upload-modal-header p {
    font-size: 12px;
  }

  .kl-upload-drop-zone {
    padding: 24px 16px;
  }

  .kl-upload-drop-text {
    font-size: 13px;
  }

  .kl-requirements-box {
    padding: 12px;
    gap: 8px;
  }

  .kl-requirements-title h4 {
    font-size: 12px;
  }

  .kl-requirement-data strong {
    font-size: 12px;
  }

  .kl-requirement-data span {
    font-size: 11px;
  }

  .kl-tip-card {
    padding: 12px 16px;
  }

  .kl-file-card {
    padding: 12px;
  }
}

/* Validation Loader Styles */
.kl-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #E5E7EB;
  border-top: 2px solid #FF8A00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.kl-progress-wrapper {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.kl-text-validating {
  font-size: 12px;
  font-weight: 400;
  color: #0A0A0A;
  line-height: 20px;
  letter-spacing: 0px;
  margin-bottom: 8px;
  display: block;
}

.kl-progress-bar {
  width: 100%;
  height: 8px;
  background: #F3F4F6;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.kl-progress-bar-fill {
  height: 100%;
  background: #FF8A00;
  width: 0%;
  border-radius: 10px;
  transition: width 0.4s ease;
}

.kl-text-checking {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0px;
  color: #6A7282;
}

.kl-tip-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(100%);
}

.kl-hidden {
  display: none !important;
}

.kl-confirmed-wrapper {
  width: 878px;
  max-width: 100%;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  background: #f5f5f5;
  box-sizing: border-box;
  border: 1px dashed #9E9E9E;
}

.kl-confirmed-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.kl-conf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.kl-conf-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kl-conf-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eee;
}

.kl-conf-meta h4 {
  margin: 0;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 0px !important;
  color: #FF8A00;
}

.kl-conf-meta span {
  font-weight: 400;
  font-size: 10px;
  line-height: 0px;
  letter-spacing: 0px;
  color: #9E9E9E;
}

.kl-conf-badge {
  background: #DCFCE7;
  color: #016630;
  border: 1px solid #B9F8CF;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 8px;
  font-weight: 400;
}

.kl-conf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  background: #F9FAFB;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  border: 1px solid #F3F4F6;
}

.kl-conf-grid-item {
  display: flex;
  gap: 3px;
}

.kl-conf-grid-label {
  font-weight: 400;
  font-size: 10px;
  color: #6B7280;
}

.kl-conf-grid-value {
  font-size: 10px;
  font-weight: 700;
  color: #364153;
}

.kl-conf-variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F6F6F6;
  border: 1px solid #B9F8CF;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.kl-conf-input {
  border: none;
  font-size: 10px !important;
  font-weight: 500;
  color: #616161 !important;
  width: 30% !important;
  outline: none !important;
}

.kl-conf-valid-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #008236;
  font-weight: 500;
  white-space: nowrap;
}

.kl-conf-actions {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 24px;
  border-top: 1px solid #E5E7EB;
  padding-top: 8px;
}

.kl-conf-action-btn {
  background: none !important;
  border: none;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #374151 !important;
  padding: 4px 19px !important;
}

.kl-conf-action-btn:hover {
  color: #FF8A00 !important;
}

.kl-conf-action-btn:hover img {
  filter: invert(53%) sepia(99%) saturate(1510%) hue-rotate(1deg) brightness(101%) contrast(101%);
}

.kl-add-more-btn {
  width: 100%;
  padding: 12px !important;
  border: 1px solid #FF8A00;
  color: #FF8A00 !important;
  background: none !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer;
  transition: all 0.2s;
}

.kl-add-more-btn:hover {
  background: #FFF8F1;
}

@media (max-width: 640px) {
  .kl-conf-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kl-conf-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .kl-conf-badge {
    align-self: flex-start;
  }

  .kl-conf-variant-row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* Skip Upload Modal Styles */
.kl-skip-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.kl-skip-modal.active {
  display: flex;
}

.kl-skip-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.kl-skip-modal-container {
  position: relative;
  background: white;
  border-radius: 12px;
  width: 512px;
  height: fit-content;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex; 
  flex-direction: column; 
}

@media (max-width: 480px){
  .kl-skip-modal-container {
    margin: 24px
  }
}

.kl-skip-modal-close {
  background: none !important;
  border: none !important;
  cursor: pointer;
  color: #9CA3AF !important;
  padding: 4px !important;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 20;
  width: 32px;
  height: 32px;
  flex-shrink: 0; 
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
}

.kl-skip-modal-content {
  margin-bottom: 24px;
}

.kl-skip-order-summary {
  flex: 1;
  padding: 45px 24px 24px 24px;
  display: inline-block;
  align-items: center;
  justify-content: center;
  background-color: #EDEDED;
}

.kl-skip-summary-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.kl-skip-message-section {
  flex: 1;
  padding: 24px 24px 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.kl-skip-message-section h3 {
  margin: 0;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #757575 !important;
  line-height: 120% !important;
}

.kl-skip-message-section p {
  margin: 0;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 150% !important;
  color: #9E9E9E !important;
}

.kl-upload-confirm-btn {
  width: 80%;
  height: 43px;
  background: #0C1FFF !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.kl-skip-confirm-btn {
  background: none !important;
  color: #FF8A00 !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
}


/* Responsive Design for Upload Modal */
@media (max-width: 480px) {

  .kl-conf-grid-value {
    font-size: 8px;
    font-weight: 700;
    color: #364153;
  }

  .kl-conf-input {
    width: 70% !important;
  }

  .kl-conf-valid-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: #008236;
    font-weight: 500;
    white-space: nowrap;
  }

  .kl-conf-actions {
    gap: 8px;
  }

  .kl-conf-actions button {
    flex: 1 1 100%;
    width: 100%;
    padding: 10px 16px !important;
    font-size: 11px !important;
  }
}

/* Terms Modal */
.kl-terms-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.kl-terms-modal.active {
    display: flex;
}

.kl-terms-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.kl-terms-modal-container {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 1000px;
    max-width: 100%;
    height: fit-content;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.kl-terms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 64px;
}

.kl-terms-header h3 {
    margin: 0;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kl-terms-close {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #9CA3AF !important;
    cursor: pointer;
    line-height: 1 !important;
    padding: 0px !important;
}

.kl-terms-body {
    overflow-y: auto;
}

.kl-terms-alert {
    background: #FCE3D6;
    color: #616161;
    padding: 12px 64px;
    line-height: 150%;
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 20px;
}
.kl-terms-alert strong {
    text-decoration: underline;
}

.kl-terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0px 64px;
    margin-bottom: 24px;
}

.kl-terms-col img {
    width: 80%;
    height: auto;
    display: block;
}

.kl-terms-bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 0px 64px;
}

.kl-terms-checklist-text {
    flex: 1;
    text-align: left;
    font-size: 13px;
    color: #555;
    line-height: 150%; 
}

.kl-terms-checklist-text ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.kl-terms-checklist-text li {
    margin-bottom: 0px !important;
    line-height: 150% !important;
    font-size: 12px !important;
}

.kl-terms-checklist-text a {
    color: #FF8A00;
    text-decoration: none;
    font-size: 12px !important;
}

.kl-terms-checklist-text a:hover {
    text-decoration: underline;
}

.kl-terms-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.kl-btn-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 157px;
    height: 110px;
    border: 1px solid #C2C2C2;
    border-radius: 8px;
    font-size: 12px !important;
    text-align: center;
    line-height: 150% !important;
    color: #616161;
    text-decoration: none;
    font-weight: 500;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.kl-btn-download:hover {
    background: #FFE7CC;
    border-color: #FF8A00;
}

@media (max-width: 768px) {
    .kl-terms-grid {
        grid-template-columns: 1fr;
    }
    
    .kl-terms-bottom-section {
        flex-direction: column-reverse;
    }

    .kl-terms-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .kl-btn-download {
        width: 100%;
        height: auto;
        padding: 12px;
        flex-direction: row;
        gap: 10px;
    }
}

body.kl-modal-open .elementor-location-footer {
  display: none !important;
}

body.kl-modal-open .kl-upload-modal,
body.kl-modal-open .kl-preview-modal {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}