/* ==========================================================================
   NK PRODUCT CONFIGURATOR — size / color / accessories card
   BEM prefix: nk-cfg. Colors below are sensible defaults; every one of
   them is also exposed as an Elementor Style control on the widget.
   ========================================================================== */

.nk-cfg {
  --nk-cfg-accent: #e6597d;
  box-sizing: border-box;
  max-width: 460px;
  background: #fdf3e7;
  border-radius: 28px;
  padding: 36px 32px;
  font-family: inherit;
}

.nk-cfg * {
  box-sizing: border-box;
}

/* ---- price row ---- */
.nk-cfg__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 24px;
}

.nk-cfg__price {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #241a3c;
}

.nk-cfg__price-old {
  font-size: 18px;
  color: #a89cc8;
  text-decoration: line-through;
}

.nk-cfg__badge {
  display: inline-flex;
  align-items: center;
  background: #3fc487;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---- groups (size / color / accessories) ---- */
.nk-cfg__group {
  margin-bottom: 22px;
}

.nk-cfg__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #7c7191;
  margin-bottom: 10px;
}

/* ---- size select ---- */
.nk-cfg__select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23555'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 16px center;
  background-size: 18px;
  border: 1px solid #e7ddf0;
  border-radius: 14px;
  padding: 16px 44px 16px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #241a3c;
  cursor: pointer;
}

.nk-cfg__select:focus {
  outline: none;
  border-color: var(--nk-cfg-accent);
}

/* ---- color swatches ---- */
.nk-cfg__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nk-cfg__swatch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.nk-cfg__swatch:hover {
  transform: scale(1.06);
}

.nk-cfg__swatch.is-active {
  border-color: var(--nk-cfg-accent);
}

.nk-cfg__swatch-input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nk-cfg__color-name {
  margin-top: 10px;
  font-size: 13px;
  color: #7c7191;
}

/* ---- accessories ---- */
.nk-cfg__acc {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e7ddf0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.nk-cfg__acc:last-child {
  margin-bottom: 0;
}

.nk-cfg__acc.is-active {
  border-color: var(--nk-cfg-accent);
  background-color: #fbe9ee;
}

.nk-cfg__acc-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nk-cfg__acc-box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cfc2df;
  background: #ffffff;
  position: relative;
  transition: background-color .15s ease, border-color .15s ease;
}

.nk-cfg__acc-input:checked + .nk-cfg__acc-box {
  background: var(--nk-cfg-accent);
  border-color: var(--nk-cfg-accent);
}

.nk-cfg__acc-input:checked + .nk-cfg__acc-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nk-cfg__acc-input:focus-visible + .nk-cfg__acc-box {
  outline: 2px solid var(--nk-cfg-accent);
  outline-offset: 2px;
}

.nk-cfg__acc-label {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 600;
  color: #241a3c;
}

.nk-cfg__acc-price {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: #7c7191;
}

/* ---- total row ---- */
.nk-cfg__total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #d9cce7;
  padding-top: 18px;
  margin: 20px 0 18px;
}

.nk-cfg__total-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #7c7191;
}

.nk-cfg__total {
  font-size: 26px;
  font-weight: 800;
  color: #241a3c;
}

/* ---- button ---- */
.nk-cfg__btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--nk-cfg-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 24px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color .15s ease;
}

.nk-cfg__btn:hover {
  background: #d5476b;
  color: #ffffff;
}

.nk-cfg__btn.is-loading {
  opacity: .75;
  cursor: progress;
}

/* shown only if the self-hosted checkout link can't be created */
.nk-cfg__msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdecee;
  color: #a1203d;
  font-size: 13px;
  line-height: 1.4;
}

/* ---- trust badges ---- */
.nk-cfg__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}

.nk-cfg__trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b6280;
}

.nk-cfg__trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fc487;
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .nk-cfg {
    padding: 26px 20px;
    border-radius: 20px;
  }
  .nk-cfg__price {
    font-size: 32px;
  }
}
