.giftcards-section {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 16px;
}

.giftcards-section .steps {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.giftcards-section .step {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: default;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.giftcards-section .step.active,
.giftcards-section .step.completed {
  opacity: 1;
  cursor: pointer;
}

.giftcards-section .separator {
  width: 50px;
  border-bottom: 1px dashed #000;
  height: 0;
}

.giftcards-section .step-num {
  display: flex;
  width: 40px;
  height: 40px;
  border: 1px solid #000;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  font-size: 14px;
  flex-shrink: 0;
}

.giftcards-section .step.active .step-num {
  background-color: #000;
  color: #fff;
}

.giftcards-section .step.completed .step-num {
  background-color: #fff;
  color: #000;
}

.giftcards-section .step-title {
  font-size: 14px;
  white-space: nowrap;
}

.giftcards-section .step-content {
  display: none;
  margin-top: 45px;
}

.giftcards-section .step-content.active {
  display: block;
}

.giftcards-section .step-content-flex {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.giftcards-section .step-content-flex-left,
.giftcards-section .step-content-flex-right {
  flex: 0 0 calc(50% - 12px);
  min-width: 0;
}

.giftcards-section .card-preview {
  --card-preview-image: none;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 300px;
  padding: 28px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a1a 0%, #3d3d3d 55%, #dc143c 120%);
  color: #fff;
  box-sizing: border-box;
  isolation: isolate;
}

.giftcards-section .card-preview.has-image {
  background-image: var(--card-preview-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.giftcards-section .card-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.12) 42%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.giftcards-section .card-preview.has-image::before {
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.15) 38%,
      rgba(0, 0, 0, 0.2) 62%,
      rgba(0, 0, 0, 0.72) 100%
    );
}

.giftcards-section .card-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 72px rgba(0, 0, 0, 0.35);
}

.giftcards-section .card-preview > * {
  position: relative;
  z-index: 1;
}

.giftcards-section .card-preview__brand {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.giftcards-section .card-preview__nominal {
  margin-top: auto;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.giftcards-section .card-preview__caption {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.giftcards-section .panel-card {
  padding: 32px 40px;
  border: 1px solid #000;
  border-radius: 30px;
  min-height: 300px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.giftcards-section .nominal-chooser {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.giftcards-section .nominal-plus-btn,
.giftcards-section .nominal-minus-btn {
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  border-radius: 100%;
  cursor: pointer;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}

.giftcards-section .nominal-plus-btn:hover,
.giftcards-section .nominal-minus-btn:hover {
  background: #000;
  color: #fff;
}

.giftcards-section .nominal-value {
  font-size: 30px;
  min-width: 140px;
  text-align: center;
}

.giftcards-section .nominal-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.giftcards-section .nominal-chip {
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.giftcards-section .nominal-chip:hover {
  border-color: #000;
}

.giftcards-section .nominal-chip.is-active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.giftcards-section .nominal-caption {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 14px;
}

.giftcards-section .giftcards-empty {
  margin: 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: #666;
}

.giftcards-section .nominal-minus-btn:disabled,
.giftcards-section .nominal-plus-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.giftcards-section .panel-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.giftcards-section .panel-desc {
  margin: 0 0 24px;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.giftcards-section .choice-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.giftcards-section .choice-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.giftcards-section .choice-option:has(input:checked) {
  border-color: #000;
  background: #f7f7f7;
}

.giftcards-section .choice-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #000;
}

.giftcards-section .choice-option__text {
  font-size: 15px;
}

.giftcards-section .form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.giftcards-section .form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #444;
}

.giftcards-section .form-field input,
.giftcards-section .form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.giftcards-section .form-field input:focus,
.giftcards-section .form-field textarea:focus {
  outline: none;
  border-color: #000;
}

.giftcards-section .form-field textarea {
  min-height: 88px;
  resize: vertical;
}

.giftcards-section .planned-form {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.giftcards-section .planned-form__row {
  display: flex;
  gap: 12px;
}

.giftcards-section .planned-form__row .form-field {
  flex: 1;
}

.giftcards-section .giftcards-summary {
  padding: 0;
  min-height: auto;
}

.giftcards-section .giftcards-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.giftcards-section .giftcards-summary-row:last-of-type {
  border-bottom: none;
}

.giftcards-section .giftcards-summary-label {
  color: #666;
  flex-shrink: 0;
}

.giftcards-section .giftcards-summary-value {
  text-align: right;
  font-weight: 500;
}

.giftcards-section .giftcards-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #000;
  font-size: 18px;
}

.giftcards-section .giftcards-summary-total strong {
  font-size: 26px;
  font-weight: 500;
}

.giftcards-section .giftcards-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.giftcards-section .giftcards-btn {
  min-width: 160px;
  padding: 14px 28px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.giftcards-section .giftcards-btn:hover:not(:disabled) {
  background: #000;
  color: #fff;
}

.giftcards-section .giftcards-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.giftcards-section .giftcards-btn--primary {
  background: #000;
  color: #fff;
  min-width: 220px;
}

.giftcards-section .giftcards-btn--primary:hover {
  background: #dc143c;
  border-color: #dc143c;
}

@media screen and (max-width: 900px) {
  .giftcards-section .step-content-flex {
    flex-direction: column;
  }

  .giftcards-section .step-content-flex-left,
  .giftcards-section .step-content-flex-right {
    flex: 0 0 100%;
  }

  .giftcards-section .card-preview {
    min-height: 200px;
  }

  .giftcards-section .panel-card {
    min-height: 0;
    padding: 24px;
  }

  .giftcards-section .separator {
    width: 24px;
  }

  .giftcards-section .step-title {
    display: none;
  }
}

.giftcards-section--pay {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.giftcards-pay__title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 600;
}

.giftcards-pay__sum {
  margin: 0 0 24px;
  font-size: 18px;
}

.giftcards-pay__message {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
}

.giftcards-pay__message--error {
  color: #b42318;
}

.giftcards-pay__form {
  margin-bottom: 24px;
}

.giftcards-pay__back {
  margin: 0;
  font-size: 14px;
}

.giftcards-pay__back a {
  color: inherit;
  text-decoration: underline;
}
