.certificate-layout {
  min-height: 100svh;
}

.certificate-body .booking-panel {
  overflow: hidden;
}

.certificate-panel-inner {
  max-width: 620px;
}

.certificate-form {
  gap: 16px;
}

.certificate-options {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.certificate-option {
  display: block;
  cursor: pointer;
}

.certificate-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.certificate-option-inner {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.certificate-option.is-selected .certificate-option-inner {
  border-color: #6b7c52;
  background: rgba(107, 124, 82, 0.06);
}

.certificate-option-name {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.2;
  color: #334155;
  font-weight: 500;
}

.certificate-option-note {
  font-size: clamp(11px, 1.45vw, 13px);
  line-height: 1.35;
  color: #94a3b8;
}

.certificate-option-price {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #64748b;
  white-space: nowrap;
}

.certificate-actions {
  margin-top: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certificate-delivery-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  user-select: none;
  cursor: pointer;
  line-height: 1.25;
  position: relative;
}

.certificate-delivery-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.certificate-delivery-box {
  width: 20px;
  height: 20px;
  border: 1px solid #94a3b8;
  background: #ffffff;
  box-sizing: border-box;
  position: relative;
  flex: 0 0 20px;
}

.certificate-delivery-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 11px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(40deg);
}

.certificate-delivery-check input:checked + .certificate-delivery-box {
  border-color: #6b7c52;
  background: rgba(107, 124, 82, 0.08);
}

.certificate-delivery-check input:checked + .certificate-delivery-box::after {
  border-right-color: #5e6f46;
  border-bottom-color: #5e6f46;
}

.certificate-delivery-text {
  display: inline-block;
}

.certificate-form .form-step[data-step="1"] .certificate-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certificate-form .form-step[data-step="1"] .certificate-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.summary-row[hidden] {
  display: none !important;
}

.dark .certificate-option-inner {
  border-color: rgba(242, 242, 242, 0.22);
  background: rgba(255, 255, 255, 0.02);
}

.dark .certificate-option.is-selected .certificate-option-inner {
  border-color: #f2f2f2;
  background: rgba(242, 242, 242, 0.06);
}

.dark .certificate-option-name,
.dark .certificate-option-price {
  color: #dbe2ea;
}

.dark .certificate-option-price {
  color: #b6c2d1;
}

.dark .certificate-delivery-check {
  color: #cbd5e1;
}

.dark .certificate-delivery-box {
  border-color: rgba(242, 242, 242, 0.35);
  background: rgba(255, 255, 255, 0.02);
}

.dark .certificate-delivery-check input:checked + .certificate-delivery-box {
  border-color: #f2f2f2;
  background: rgba(242, 242, 242, 0.08);
}

.dark .certificate-delivery-check input:checked + .certificate-delivery-box::after {
  border-right-color: #f2f2f2;
  border-bottom-color: #f2f2f2;
}

.dark .certificate-option-note {
  color: #9ca3af;
}

@media (max-width: 820px) {
  .certificate-option-inner {
    min-height: 84px;
    padding: 14px;
  }
}
