/* SISKUL payment checkout production cache guard.
   Intentionally scoped to the QR/course checkout modal only.
   This file exists separately so production/CDN cannot keep serving an older
   cached course.css layout while development already shows the current design. */

@media (max-width: 1023px) {
  .modal-backdrop:has(.course-reference-checkout) {
    place-items: stretch !important;
    padding: 0 !important;
    background: #050506 !important;
    backdrop-filter: none !important;
  }

  .modal-backdrop:has(.course-reference-checkout) .modal,
  .modal-backdrop:has(.course-reference-checkout) .modal.large {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .modal-backdrop:has(.course-reference-checkout) .modal-close {
    display: none !important;
  }

  .modal-backdrop:has(.course-reference-checkout) > .modal > #modalContent {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .course-reference-checkout {
    width: 100% !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
    padding: 14px clamp(18px, 6vw, 56px) calc(28px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    color: #fff !important;
    background:
      radial-gradient(circle at 44% 16%, rgba(104, 6, 13, .18), transparent 30%),
      linear-gradient(180deg, #070708, #080607 56%, #050505 100%) !important;
  }

  .course-reference-checkout::before,
  .course-reference-checkout .course-reference-topbar,
  .course-reference-checkout .course-reference-heading,
  .course-reference-checkout .course-payment-note-field,
  .course-reference-checkout .course-payment-secure-footer {
    display: none !important;
  }

  .course-reference-checkout .course-mobile-payment-appbar {
    position: static !important;
    display: block !important;
    min-height: 44px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .course-reference-checkout .course-mobile-payment-back {
    display: grid !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 47, 58, .44) !important;
    border-radius: 10px !important;
    color: #fff !important;
    background: rgba(255,255,255,.015) !important;
  }

  .course-reference-checkout > .course-payment-methods {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 0 16px !important;
  }

  .course-reference-checkout .course-payment-choice {
    min-width: 0 !important;
    min-height: 70px !important;
    box-sizing: border-box !important;
    gap: 9px !important;
    padding: 11px 10px !important;
  }

  .course-reference-checkout .course-payment-choice small {
    display: none !important;
  }

  .course-reference-checkout-grid {
    display: block !important;
    width: 100% !important;
  }

  .course-reference-payment-visuals,
  .course-reference-payment-fields,
  .course-reference-payment-form {
    width: 100% !important;
    max-width: 860px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .course-reference-checkout .course-qr-payment-panel {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .course-reference-checkout .course-reference-qr-heading {
    display: grid !important;
    gap: 4px !important;
    margin: 0 0 12px !important;
    text-align: center !important;
  }

  .course-reference-checkout .course-reference-qr-heading b {
    color: #f3eeee !important;
    font-size: 1.08rem !important;
    line-height: 1.2 !important;
  }

  .course-reference-checkout .course-reference-qr-heading span {
    color: #ff343f !important;
    font-size: .94rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  .course-reference-checkout .course-qr-payment-visual {
    display: grid !important;
    place-items: center !important;
    min-height: 0 !important;
  }

  .course-reference-checkout .course-payment-qr,
  .course-reference-checkout .course-payment-qr-empty {
    display: block !important;
    width: min(100%, 560px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 12px !important;
    border: 0 !important;
    border-radius: 13px !important;
    object-fit: contain !important;
    background: #fff !important;
    box-shadow: 0 0 24px rgba(255, 36, 49, .30) !important;
  }

  .course-reference-checkout .course-qr-payment-panel > p {
    display: none !important;
  }

  .course-reference-form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .course-reference-form-grid .field,
  .course-reference-form-grid .field.full {
    grid-column: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .course-reference-field-control {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 68px !important;
    box-sizing: border-box !important;
    padding: 9px 14px !important;
    border: 1px solid rgba(255,255,255,.19) !important;
    border-radius: 11px !important;
    background: rgba(8,8,9,.66) !important;
    overflow: hidden !important;
  }

  .course-reference-field-control > i {
    position: static !important;
    display: block !important;
    width: 32px !important;
    margin: 0 !important;
    color: #ff3541 !important;
    font-size: 1rem !important;
    text-align: center !important;
    transform: none !important;
  }

  .course-reference-input-copy {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .course-reference-input-copy label {
    position: static !important;
    display: block !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    color: #f0ecee !important;
    background: transparent !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    transform: none !important;
  }

  .course-reference-input-copy input {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 25px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: .86rem !important;
    line-height: 1.35 !important;
  }

  .course-reference-input-copy input::placeholder {
    color: #777277 !important;
    opacity: 1 !important;
  }

  .course-reference-checkout .course-screenshot-field {
    margin-top: 4px !important;
  }

  .course-reference-checkout .course-screenshot-field > label {
    position: static !important;
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #f1ecee !important;
    background: transparent !important;
    font-size: .86rem !important;
    font-weight: 700 !important;
    transform: none !important;
  }

  .course-reference-checkout .course-file-picker {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .course-reference-checkout .course-file-button {
    display: flex !important;
    width: 100% !important;
    min-height: 76px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border: 1px dashed rgba(255, 50, 61, .56) !important;
    border-radius: 10px !important;
    color: #fff !important;
    background: rgba(18, 11, 12, .54) !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .course-reference-checkout .course-file-button > i {
    flex: 0 0 auto !important;
    color: #ff404b !important;
    font-size: 1.5rem !important;
  }

  .course-reference-checkout .course-file-button > span {
    display: grid !important;
    min-width: 0 !important;
    gap: 3px !important;
    text-align: left !important;
  }

  .course-reference-checkout .course-file-button b {
    font-size: .9rem !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  .course-reference-checkout .course-file-button small {
    color: #999396 !important;
    font-size: .68rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  .course-reference-checkout .course-file-name {
    display: block !important;
    margin-top: 8px !important;
    color: #a9a4a7 !important;
    font-size: .75rem !important;
  }

  .course-reference-action-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 16px 0 0 !important;
  }

  .course-reference-action-whatsapp,
  .course-reference-action-row .course-reference-submit {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    border-radius: 11px !important;
    font-size: .82rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .course-reference-action-whatsapp span,
  .course-reference-action-row .course-reference-submit span {
    min-width: 0 !important;
    text-align: center !important;
  }

  .course-reference-action-whatsapp i,
  .course-reference-action-row .course-reference-submit i {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .course-reference-action-whatsapp {
    border: 1px solid rgba(0, 238, 102, .72) !important;
    color: #00ef68 !important;
    background: rgba(0, 238, 102, .035) !important;
  }

  .course-reference-action-row .course-reference-submit {
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(100deg, #ff2a35, #d9000d) !important;
    box-shadow: 0 0 20px rgba(255, 31, 45, .28) !important;
  }

  .course-reference-checkout .course-registration-whatsapp-row {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .course-reference-checkout {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .course-reference-checkout .course-payment-qr,
  .course-reference-checkout .course-payment-qr-empty {
    padding: 10px !important;
  }

  .course-reference-action-whatsapp,
  .course-reference-action-row .course-reference-submit {
    min-height: 50px !important;
    padding: 0 7px !important;
    font-size: .78rem !important;
  }
}
