.checkout-page {
  background: #f7f9fc;
  color: #273043;
  font-family: "Nunito", sans-serif;
}

.checkout-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(7, 30, 85, 0.06);
  backdrop-filter: blur(12px);
  padding: 14px 0;
}

.checkout-logo img {
  max-height: 48px;
}

.checkout-back {
  color: #071e55;
  font-weight: 800;
}

.checkout-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-policy-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 16px 36px;
}

.checkout-policy-footer a {
  color: #071e55;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.checkout-policy-footer a:hover {
  color: #f9b435;
}

.checkout-policy-footer span {
  color: #a4adba;
}

.status-language {
  position: absolute;
  top: 18px;
  right: 18px;
  width: fit-content;
}

.checkout-main {
  min-height: 100vh;
}

.checkout-hero {
  background: linear-gradient(135deg, rgba(249, 180, 53, 0.98), rgba(254, 201, 73, 0.96)), #fec949;
  padding: 58px 0 64px;
}

.checkout-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(7, 30, 85, 0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  color: #071e55;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-hero h1 {
  color: #071e55;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
}

.checkout-hero p {
  color: #3f331a;
  max-width: 640px;
  margin-bottom: 0;
}

.checkout-section {
  padding: 54px 0 76px;
}

.checkout-panel,
.checkout-summary,
.status-card {
  background: #fff;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(7, 30, 85, 0.08);
}

.checkout-panel {
  padding: 30px;
}

.checkout-panel h2,
.checkout-summary h2 {
  color: #071e55;
  font-size: 26px;
}

.checkout-panel label {
  color: #071e55;
  font-weight: 800;
  margin-bottom: 7px;
}

.checkout-panel .form-control {
  border: 1px solid #dfe7ef;
  border-radius: 7px;
  min-height: 48px;
}

.checkout-panel .input-group-text {
  border-color: #dfe7ef;
  border-radius: 7px;
  background: #fff7df;
  color: #071e55;
  font-weight: 800;
}

.cloud-section {
  border-top: 1px solid #e7edf3;
  margin-top: 6px;
  padding-top: 18px;
}

.cloud-section > label {
  display: block;
  margin-bottom: 8px;
}

.cloud-showcase-card {
  align-items: start;
}

.cloud-showcase-card .optional-image-button img {
  object-position: left center;
}

.cloud-lead,
.cloud-disclaimer {
  color: #4f5d6b;
  font-size: 14px;
  line-height: 1.55;
}

.cloud-lead {
  display: block;
  margin-bottom: 4px;
}

.cloud-disclaimer {
  display: block;
  border-left: 3px solid #f9b435;
  margin: 4px 0 0;
  padding: 10px 12px;
  background: #fffaf0;
  border-radius: 0 7px 7px 0;
  font-weight: 800;
}

.cloud-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cloud-option {
  display: block;
  margin: 0;
  position: relative;
  cursor: pointer;
}

.cloud-option > input {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  opacity: 0;
  pointer-events: none;
}

.cloud-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 142px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cloud-option > input:checked + .cloud-card,
.cloud-option.is-selected .cloud-card {
  border-color: #f9b435;
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(249, 180, 53, 0.14);
}

.cloud-option > input:checked + .cloud-card .option-checkbox,
.cloud-option.is-selected .option-checkbox {
  background: #f9b435;
  border-color: #f9b435;
}

.cloud-section.has-error .cloud-showcase-card {
  border-color: #d94747;
  box-shadow: 0 10px 24px rgba(217, 71, 71, 0.12);
}

.cloud-card strong {
  color: #071e55;
  font-weight: 900;
}

.cloud-price {
  color: #071e55;
  font-size: 15px;
  font-weight: 900;
}

.cloud-desc {
  color: #4f5d6b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.cloud-error {
  display: block;
  margin-top: 2px;
  font-weight: 900;
}

.cloud-error[hidden] {
  display: none;
}

.hardware-option {
  display: block;
  margin: 0;
  cursor: pointer;
}

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

.hardware-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.hardware-option > input:checked + .hardware-card {
  border-color: #f9b435;
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(249, 180, 53, 0.18);
}

.option-checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 2px;
  color: #071e55;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.option-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #f9b435;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}

.hardware-option > input:checked + .hardware-card .option-checkbox {
  background: #f9b435;
}

.optional-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.optional-image-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  background: #f7f9fc;
}

.optional-image-button > span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  padding: 7px 9px;
  background: rgba(7, 30, 85, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.hardware-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hardware-copy strong {
  color: #071e55;
  font-size: 20px;
  font-weight: 900;
}

.hardware-copy small {
  color: #6c7483;
  font-size: 14px;
  font-weight: 800;
}

.hardware-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.hardware-list span {
  color: #4f5d6b;
  font-size: 14px;
  font-weight: 700;
}

.hardware-list i {
  color: #27b36a;
  margin-right: 5px;
}

.receipt-description-list {
  grid-template-columns: 1fr;
}

.nested-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.nested-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nested-group > span {
  color: #071e55;
  font-size: 13px;
  font-weight: 900;
}

.addon-section {
  border-top: 1px solid #e7edf3;
  margin-top: 6px;
  padding-top: 18px;
}

.addon-section > label {
  display: block;
  margin-bottom: 5px;
}

.addon-section > p {
  color: #4f5d6b;
  font-size: 14px;
  margin-bottom: 14px;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.addon-option {
  display: block;
  margin: 0;
  position: relative;
  cursor: pointer;
}

.addon-option > input {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  opacity: 0;
  pointer-events: none;
}

.addon-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 126px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.addon-option > input:checked + .addon-card,
.addon-option.is-selected .addon-card {
  border-color: #f9b435;
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(249, 180, 53, 0.14);
}

.addon-option > input:checked + .addon-card .option-checkbox,
.addon-option.is-selected .option-checkbox {
  background: #f9b435;
  border-color: #f9b435;
}

.addon-name {
  color: #071e55;
  font-size: 14px;
  line-height: 1.35;
  text-transform: none;
}

.addon-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.addon-meta strong {
  color: #071e55;
  font-size: 15px;
  font-weight: 900;
}

.addon-meta small {
  color: #6c7483;
  font-size: 12px;
  font-weight: 800;
}

.addon-tools {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}

.addon-tool {
  position: relative;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #dfe7ef;
  border-radius: 7px;
  background: #fff;
  color: #071e55;
  text-decoration: none;
}

.addon-tool i {
  color: #071e55;
}

.addon-tool .bi-youtube,
.addon-tools .bi-youtube {
  color: #f00;
}

.addon-tools img {
  width: 84px;
  max-width: 50%;
  height: auto;
}

.image-preview,
.video-preview {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 30, 85, 0.84);
}

.image-preview[hidden],
.video-preview[hidden] {
  display: none;
}

.image-preview figure,
.video-preview figure {
  width: min(1100px, 100%);
  max-height: 88vh;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,0.28);
}

.image-preview img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
}

.video-preview iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.image-preview figcaption,
.video-preview figcaption {
  padding: 12px 16px;
  color: #071e55;
  font-weight: 900;
}

.image-preview-close {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f9b435;
  color: #071e55;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.shipping-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 30, 85, 0.72);
}

.shipping-modal[hidden] {
  display: none;
}

.shipping-modal-card {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid #e7edf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,0.24);
  padding: 28px;
}

.shipping-modal-card h2 {
  color: #071e55;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
}

.shipping-modal-card p {
  color: #4f5d6b;
  margin-bottom: 18px;
}

.shipping-modal-card label {
  color: #071e55;
  font-weight: 900;
  margin-bottom: 7px;
}

.shipping-modal-card textarea {
  border: 1px solid #dfe7ef;
  border-radius: 7px;
  min-height: 130px;
  resize: vertical;
}

.shipping-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.shipping-modal-actions .btn-warning,
.shipping-modal-actions .btn-warning span,
.shipping-modal-actions .btn-warning i {
  color: #071e55 !important;
  font-weight: 900;
}

.shipping-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff7df;
  color: #071e55;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.field-help {
  display: block;
  color: #6c7483;
  margin-top: 7px;
}

.field-error {
  color: #d94747;
  font-size: 14px;
  font-weight: 700;
  margin-top: 7px;
}

.form-control.is-invalid {
  border-color: #d94747;
}

.checkout-pay {
  width: 100%;
  margin: 10px 0 16px;
  padding: 14px 18px;
  color: #071e55 !important;
  font-weight: 900;
}

.checkout-pay i,
.checkout-pay span {
  color: #071e55 !important;
}

.checkout-pay:hover,
.checkout-pay:focus {
  color: #071e55 !important;
}

.checkout-summary-column {
  position: sticky;
  top: 92px;
  align-self: flex-start;
  height: fit-content;
}

.checkout-summary {
  padding: 28px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.checkout-summary span {
  color: #f9b435;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-totals {
  border-top: 1px solid #e7edf3;
  border-bottom: 1px solid #e7edf3;
  margin: 22px 0 18px;
  padding: 14px 0;
}

.summary-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4f5d6b;
  margin-bottom: 8px;
}

.summary-totals div:last-child {
  margin-bottom: 0;
}

.summary-totals span {
  color: #4f5d6b;
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
}

.summary-totals .summary-line-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.summary-totals .summary-line-label > span {
  color: #4f5d6b;
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
}

.summary-totals .summary-line-label small {
  color: #071e55;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.summary-totals strong {
  color: #071e55;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.summary-totals .summary-total {
  border-top: 1px dashed #dfe7ef;
  padding-top: 14px;
  margin-top: 14px;
}

.summary-totals .summary-total span,
.summary-totals .summary-total strong {
  color: #071e55;
  font-size: 18px;
}

.summary-addon-details {
  display: block !important;
  border-top: 1px dashed #dfe7ef;
  margin-top: 6px;
  padding-top: 10px;
}

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

.summary-addon-details > span {
  color: #f9b435;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-addon-details ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.summary-addon-details li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: #4f5d6b;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 7px;
}

.summary-addon-details li span {
  color: #4f5d6b;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.summary-addon-details li strong {
  color: #071e55;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.shipping-address-summary {
  border: 1px solid #e7edf3;
  border-radius: 8px;
  background: #fffaf0;
  margin: 0 0 18px;
  padding: 14px;
}

.shipping-address-summary > span {
  color: #f9b435;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.shipping-address-summary p {
  color: #4f5d6b;
  font-size: 14px;
  line-height: 1.55;
  margin: 8px 0 12px;
  white-space: pre-line;
}

.shipping-address-summary .btn {
  color: #071e55;
  font-weight: 900;
}

.shipping-address-summary .btn span,
.shipping-address-summary .btn i {
  color: #071e55;
}

.checkout-summary ul {
  margin: 0 0 18px;
}

.checkout-summary li {
  display: flex;
  gap: 8px;
  color: #4f5d6b;
  font-size: 15px;
  line-height: 24px;
  margin-bottom: 9px;
}

.checkout-summary li i {
  color: #27b36a;
}

.checkout-summary small {
  color: #6c7483;
}

.checkout-recaptcha {
  display: flex;
  justify-content: center;
  margin: 12px 0 14px;
  overflow: hidden;
}

.status-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, rgba(249, 180, 53, 0.98), rgba(254, 201, 73, 0.96)), #fec949;
}

.status-card {
  width: min(620px, 100%);
  padding: 38px;
  text-align: center;
  position: relative;
}

.status-card img {
  max-height: 54px;
  margin-bottom: 24px;
}

.status-icon {
  display: block;
  font-size: 58px;
  margin-bottom: 16px;
}

.status-card.success .status-icon {
  color: #27b36a;
}

.status-card.failed .status-icon {
  color: #d94747;
}

.status-card h1 {
  color: #071e55;
  font-size: 34px;
  font-weight: 900;
}

.status-card small {
  display: block;
  color: #6c7483;
  margin: 14px 0 4px;
}

.status-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.policy-hero {
  background: linear-gradient(135deg, rgba(249, 180, 53, 0.98), rgba(254, 201, 73, 0.96)), #fec949;
  padding: 54px 0 60px;
}

.policy-hero h1 {
  color: #071e55;
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 10px;
}

.policy-hero p {
  color: #3f331a;
  max-width: 760px;
  margin: 0;
}

.policy-section {
  padding: 46px 0 76px;
}

.policy-card {
  background: #fff;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(7, 30, 85, 0.08);
  padding: 34px;
}

.policy-updated {
  color: #6c7483;
  font-weight: 800;
  margin-bottom: 28px;
}

.policy-card h2 {
  color: #071e55;
  font-size: 22px;
  font-weight: 900;
  margin: 28px 0 10px;
}

.policy-card h2:first-child {
  margin-top: 0;
}

.policy-card p {
  color: #4f5d6b;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .checkout-nav .container {
    gap: 14px;
  }

  .checkout-nav-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .checkout-policy-footer a {
    font-size: 13px;
  }

  .checkout-nav-actions .language-switcher {
    transform: scale(0.92);
    transform-origin: right center;
  }

  .checkout-hero {
    padding: 42px 0 48px;
  }

  .checkout-hero h1 {
    font-size: 32px;
  }

  .checkout-section {
    padding: 34px 0 52px;
  }

  .policy-hero {
    padding: 40px 0 44px;
  }

  .policy-hero h1 {
    font-size: 31px;
  }

  .policy-card {
    padding: 24px 18px;
  }

  .policy-card h2 {
    font-size: 19px;
  }

  .checkout-panel,
  .checkout-summary,
  .status-card {
    padding: 22px;
  }

  .hardware-card {
    grid-template-columns: 1fr;
  }

  .hardware-list {
    grid-template-columns: 1fr;
  }

  .nested-options {
    grid-template-columns: 1fr;
  }

  .cloud-grid {
    grid-template-columns: 1fr;
  }

  .addon-grid {
    grid-template-columns: 1fr;
    max-height: 520px;
  }

  .status-card {
    padding-top: 78px;
  }

  .status-language {
    top: 18px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .checkout-summary-column {
    position: static;
  }

  .checkout-summary {
    max-height: none;
    overflow: visible;
  }

  .status-actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .checkout-logo img {
    max-height: 38px;
  }

  .checkout-back {
    font-size: 14px;
  }
}
