:root {
  /* Color palette - CSS custom properties for maintainability */
  /* Cache bust: 2025-11-18 20:28 */
  --rps-bg: #18232f;
  --rps-input-bg: #293847;
  --rps-input-text: #e0e7f0;
  --rps-label: #e0e7f0;
  --rps-border: #3c475d;
  --rps-primary: #3aa0ff;
  --rps-primary-hover: #2a8be6;
  --rps-progress: #3aa0ff;
  --rps-dp-day-size: 44px;

  :root {
    /* Color palette - CSS custom properties for maintainability */
    /* Cache bust: 2025-11-18 20:28 */
    --rps-bg: #18232f;
    --rps-input-bg: #293847;
    --rps-input-text: #e0e7f0;
    --rps-label: #e0e7f0;
    --rps-border: #3c475d;
    --rps-primary: #3aa0ff;
    --rps-primary-hover: #2a8be6;
    --rps-progress: #3aa0ff;
    --rps-dp-day-size: 44px;
    --rps-dp-font-size: 0.95rem;
  }

  /* Performance: Use contain for layout optimization */
  .rps-form {
    background: var(--rps-bg);
    border-radius: 5px;
    padding: 28px;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    color: var(--rps-input-text);
    contain: layout style;
  }

  .rps-progress {
    margin-bottom: 24px;
    position: relative;
  }

  .rps-progress__bar {
    height: 6px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
  }

  .rps-progress__bar span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 33%;
    background: var(--rps-progress);
    border-radius: inherit;
    transition: width 0.4s ease;
    will-change: width;
  }

  .rps-progress__steps {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 12px;
    color: var(--rps-label);
  }

  .rps-progress__steps span.active {
    color: var(--rps-primary);
    font-weight: 600;
  }

  .rps-form__wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .rps-step {
    display: none;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .rps-step.active {
    display: block;
  }

  .rps-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
    /* allow absolutely-positioned required star */
  }

  .rps-field label {
    font-weight: 600;
    color: var(--rps-label);
    margin-bottom: 8px;
  }

  /* small red star shown for required fields */
  .rps-required-star {
    color: #ff6b6b;
    margin-left: 6px;
    font-weight: 700;
  }

  /* when the star follows an input (placeholder-only UI), position it inside the input */
  .rps-field input[required]+.rps-required-star,
  .rps-field textarea[required]+.rps-required-star,
  .rps-field select[required]+.rps-required-star {
    position: absolute;
    right: 12px;
    top: 12px;
    pointer-events: none;
    font-size: 1rem;
  }

  .rps-field input,
  .rps-field textarea,
  .rps-field select {
    border-radius: 5px;
    border: 1px solid var(--rps-border);
    padding: 12px 14px;
    font-size: 1rem;
    background: var(--rps-input-bg);
    color: var(--rps-input-text);
    transition: border 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Security: Prevent layout breaking from long inputs */
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rps-field textarea {
    /* Security: Allow text wrapping in textarea */
    overflow: auto;
    text-overflow: clip;
    resize: vertical;
    min-height: 80px;
    max-height: 300px;
  }

  .rps-field input:focus,
  .rps-field textarea:focus,
  .rps-field select:focus {
    outline: none;
    border-color: var(--rps-primary);
    box-shadow: 0 0 0 4px rgba(58, 160, 255, 0.12);
  }

  /* Ensure select dropdown uses accent color */
  .rps-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233aa0ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }

  .rps-field select:focus,
  .rps-field select:focus-visible {
    outline: none !important;
    outline-width: 0 !important;
    outline-color: transparent !important;
    border-color: var(--rps-primary) !important;
    box-shadow: 0 0 0 4px rgba(58, 160, 255, 0.12) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
  }

  .rps-field select option {
    background: var(--rps-input-bg);
    color: var(--rps-input-text);
  }

  /* Master select dropdown specific styling */
  .rps-master-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233aa0ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    border-radius: 5px;
    border: 1px solid var(--rps-border);
    padding: 8px 36px 8px 12px;
    font-size: 0.95rem;
    background-color: var(--rps-input-bg);
    color: var(--rps-input-text);
    transition: border 0.2s ease, box-shadow 0.2s ease;
  }

  .rps-master-select:focus,
  .rps-master-select:focus-visible {
    outline: none !important;
    outline-width: 0 !important;
    outline-color: transparent !important;
    outline-offset: 0 !important;
    border-color: var(--rps-primary) !important;
    box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.12) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
  }

  .rps-master-select option {
    background: var(--rps-input-bg);
    color: var(--rps-input-text);
  }

  /* Box-style master controls (yes/no) */
  .rps-master-box {
    display: inline-flex;
    gap: 8px;
    align-items: center;
  }

  .rps-master-box .rps-master-btn {
    background: var(--rps-input-bg);
    color: var(--rps-input-text);
    border: 1px solid var(--rps-border);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
  }

  .rps-master-box .rps-master-btn--active {
    background: var(--rps-primary);
    border-color: var(--rps-primary);
    color: #fff;
  }

  .rps-master-box .rps-master-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.12);
  }

  /* Order summary responsive layout */
  .rps-order-items {
    display: grid;
    gap: 10px;
  }

  .rps-order-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .rps-item-heading {
    display: none;
    /* visible on mobile only */
    font-weight: 700;
    color: var(--rps-label);
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .rps-item-value {
    display: block;
  }

  @media (max-width: 720px) {

    /* Hide table-like header on mobile since each card has its own headings */
    .rps-order-summary-header {
      display: none !important;
    }

    .rps-order-item {
      display: block;
      background: rgba(255, 255, 255, 0.02);
      padding: 12px;
    }

    .rps-item-heading {
      display: block;
    }

    .rps-item-value {
      margin-bottom: 10px;
    }

    .rps-master-box {
      margin-top: 6px;
    }

    .rps-alternate-controls {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    /* Align all items to the left on mobile to match screenshot */
    .rps-order-item .rps-item-mix,
    .rps-order-item .rps-item-alternate,
    .rps-order-item .rps-item-master,
    .rps-order-item .rps-item-rate,
    .rps-order-item .rps-item-subtotal {
      justify-content: flex-start !important;
    }

    .rps-order-item .rps-item-mix .rps-item-value,
    .rps-order-item .rps-item-alternate .rps-item-value,
    .rps-order-item .rps-item-master .rps-item-value,
    .rps-order-item .rps-item-rate .rps-item-value {
      text-align: left !important;
      justify-content: flex-start !important;
      display: flex !important;
      margin-bottom: 0 !important;
      line-height: 1.2 !important;
    }

    /* For mobile stacked cards, show rate value left-aligned with other content */
    .rps-order-item .rps-item-rate,
    .rps-order-item .rps-item-subtotal {
      text-align: left !important;
      justify-content: flex-start !important;
      justify-self: start !important;
      display: flex !important;
      flex-direction: row !important;
      gap: 6px !important;
      align-items: baseline !important;
      width: 100% !important;
    }

    .rps-order-item .rps-item-rate .rps-item-heading,
    .rps-order-item .rps-item-subtotal .rps-item-heading {
      display: block !important;
      text-align: left !important;
      margin-bottom: 0 !important;
      line-height: 1.2 !important;
    }

    .rps-order-item .rps-item-rate .rps-item-value,
    .rps-order-item .rps-item-subtotal .rps-item-value {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      text-align: left !important;
      justify-content: flex-start !important;
      line-height: 1.2 !important;
    }

    .rps-order-item .rps-item-rate .rps-rate-value {
      text-align: left !important;
      line-height: 1.2 !important;
    }

    /* Mobile visual refinements to match screenshot */
    .rps-mix-label {
      font-weight: 600;
      font-size: 0.98rem;
      margin-bottom: 6px;
      color: var(--rps-input-text);
    }

    /* Make alternate mix controls touch-friendly and visually similar to mock */
    .rps-alternate-controls {
      gap: 10px;
    }

    .rps-alternate-minus,
    .rps-alternate-plus {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: var(--rps-primary);
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: none;
      font-size: 18px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .rps-alternate-value {
      min-width: 40px;
      padding: 6px 10px;
      background: rgba(0, 0, 0, 0.25);
      color: var(--rps-input-text);
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.02);
      font-weight: 600;
      text-align: center;
    }

    /* Master yes/no as compact pills like the mock */
    .rps-master-box {
      gap: 8px;
    }

    .rps-master-box .rps-master-btn {
      padding: 8px 12px;
      min-width: 44px;
      height: 34px;
      border-radius: 18px;
      font-size: 0.92rem;
      background: var(--rps-input-bg);
      color: var(--rps-input-text);
      border: 1px solid var(--rps-border);
    }

    .rps-master-box .rps-master-btn--active {
      background: var(--rps-primary);
      color: #fff;
      border-color: var(--rps-primary);
    }

    /* Emphasize rate on mobile to match design and keep it left-aligned */
    .rps-order-item .rps-item-rate {
      text-align: left !important;
      justify-content: flex-start !important;
      justify-self: start !important;
    }

    .rps-order-item .rps-item-rate .rps-rate-value {
      font-size: 0.98rem;
      font-weight: 600;
      color: var(--rps-input-text);
      text-align: left !important;
    }
  }

  /* Song name input shown under each Mix in the order summary */
  .rps-song-name-input {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--rps-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--rps-input-text);
    font-size: 0.95rem;
  }

  .rps-song-name-input::placeholder {
    color: rgba(224, 231, 240, 0.5);
  }

  /* Match focus style of other inputs */
  .rps-song-name-input:focus {
    outline: none;
    border-color: var(--rps-primary);
    box-shadow: 0 0 0 4px rgba(58, 160, 255, 0.12);
  }

  /* Desktop alternate button styles - blue background */
  .rps-alternate-minus,
  .rps-alternate-plus {
    width: 28px;
    height: 28px;
    border: 1px solid var(--rps-border);
    background: var(--rps-primary);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
  }

  .rps-alternate-minus:hover,
  .rps-alternate-plus:hover {
    background: var(--rps-primary-hover);
  }

  .rps-alternate-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    padding: 6px 12px;
    background: var(--rps-input-bg);
    border: 1px solid var(--rps-border);
    border-radius: 4px;
    font-size: 14px;
  }

  /* Make master and alternate buttons slightly larger for touch */
  .rps-master-box .rps-master-btn {
    min-width: 44px;
    height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
  }

  /* placeholder color */
  .rps-field input::placeholder,
  .rps-field textarea::placeholder {
    color: rgba(224, 231, 240, 0.65);
  }

  .rps-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--rps-input-text) 50%),
      linear-gradient(135deg, var(--rps-input-text) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 4px), calc(100% - 14px) calc(50% - 4px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
    cursor: pointer;
  }

  .rps-field--inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
  }

  /* Consent error styles */
  .rps-field--consent {
    position: relative;
  }

  .rps-field--consent.rps-error {
    border-radius: 5px;
    padding: 8px;
    border: 1px solid #ff6b6b;
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.02), transparent);
  }

  .rps-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--rps-input-text);
    font-size: 0.98rem;
    line-height: 1.35;
    flex-wrap: nowrap;
  }

  .rps-consent-text {
    flex: 1;
    display: inline;
  }

  .rps-consent .rps-required-star {
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 2px;
    vertical-align: baseline;
  }

  .rps-consent input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 4px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--rps-primary);
    border-radius: 4px;
  }

  @media (max-width: 640px) {
    .rps-consent input[type="checkbox"] {
      width: 20px;
      height: 20px;
      margin-top: 6px;
    }
  }

  .rps-consent-error {
    margin-top: 8px;
    color: var(--rps-input-text);
    font-size: 0.9rem;
  }

  .rps-button {
    background: var(--rps-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 28px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    /* Security: Prevent text selection for better UX */
    user-select: none;
    -webkit-user-select: none;
    /* Performance: Optimize hover transforms */
    will-change: transform;
  }

  .rps-button:hover {
    transform: translateY(-1px);
    background: var(--rps-primary-hover);
  }

  /* Security: Disabled state prevents interaction */
  .rps-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
  }

  /* Gradient primary next button with microphone icon */
  .rps-button--primary-gradient {
    background: linear-gradient(90deg, #1e88ff, #2aa0ff);
    box-shadow: 0 8px 24px rgba(42, 138, 230, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .rps-button--primary-gradient:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
  }

  .rps-button__icon {
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
  }

  .rps-icon {
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
    margin-left: 6px;
  }

  .rps-secure-note {
    color: rgba(224, 231, 240, 0.9);
  }

  .rps-deposit-note small {
    color: rgba(224, 231, 240, 0.95);
    font-size: 0.95rem;
  }

  .rps-deposit-warning small {
    color: rgba(224, 231, 240, 0.78);
    font-size: 0.85rem;
  }

  .rps-button--ghost {
    background: transparent;
    color: var(--rps-input-text);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }

  /* Payment method tabs (replace radio inputs) */
  .rps-payment-tabs__list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    /* allow wrap on small screens */
  }

  .rps-payment-tabs__list .rps-pay-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    /* grow/shrink equally */
    min-width: 160px;
    /* reasonable minimum before wrapping */
  }

  .rps-payment-tab {
    background: transparent;
    color: var(--rps-input-text);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    flex: 1 1 0;
    /* grow/shrink equally like pay items */
    min-width: 160px;
  }

  .rps-payment-tab:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }

  .rps-payment-tab--active {
    /* default active uses primary gradient to match primary buttons */
    background: linear-gradient(90deg, #1e88ff, #2aa0ff);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* PayPal-specific active style to use PayPal gold + blue text */
  .rps-payment-tab--active[data-method="paypal"],
  .rps-payment-tab--active[data-method='paypal'] {
    background: #f6c94a;
    /* PayPal-like gold */
    color: #003087;
    /* PayPal blue */
  }

  /* Helper text shown when payment methods are disabled */
  .rps-payment-helper {
    color: rgba(224, 231, 240, 0.75);
    font-size: 0.9rem;
  }

  /* Disabled tab appearance */
  .rps-payment-tab[disabled],
  .rps-payment-tab[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    background: transparent;
    color: rgba(224, 231, 240, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.03);
  }

  /* disabled button appearance */
  .rps-button--disabled,
  .rps-button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(0.05);
  }

  /* Fixed footer primary button */
  .rps-fixed-footer {
    position: static;
    /* not sticky any more */
    width: 100%;
    background: transparent;
    padding-top: 18px;
    display: flex;
    justify-content: center;
    /* center the button in the footer */
  }

  .rps-fixed-footer__inner {
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    /* back left, primary right */
    align-items: center;
  }

  /* when only the primary button is present align it to the right */
  .rps-fixed-footer__inner.rps-footer--single {
    justify-content: flex-end;
  }

  /* add space above footer so it doesn't hug the form */
  .rps-fixed-footer {
    margin-top: 24px;
  }

  .rps-fixed-footer #rps-fixed-primary {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }

  /* ensure back and primary align and have space */
  #rps-fixed-back {
    margin-right: 12px;
    min-width: 120px;
  }

  #rps-fixed-primary {
    min-width: 200px;
  }

  /* hide in-step primary gradient buttons to avoid duplicate actions */
  .rps-step__actions .rps-button--primary-gradient {
    display: none;
  }

  @media (max-width: 640px) {
    .rps-fixed-footer__inner {
      flex-direction: column;
      gap: 8px;
    }

    #rps-fixed-back,
    #rps-fixed-primary {
      width: 100%;
    }
  }

  /* inline helper message shown under fixed footer buttons */
  .rps-fixed-help {
    margin-top: 20px;
    color: rgba(255, 5, 5, 0.78);
    font-size: 0.72rem;
    /* slightly smaller */
    text-align: center;
    /* centered under the primary button */
    display: block;
    line-height: 1;
    white-space: nowrap;
    /* keep on one line */
  }

  @media (max-width: 640px) {
    .rps-fixed-help {
      text-align: center;
      /* center on small screens under stacked buttons */
      padding-right: 0;
    }
  }

  /* Summary styles consolidated below in the pricing section */

  /* Custom file upload UI */
  .rps-file-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .rps-file-button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .rps-file-input {
    /* Visually hide native input but keep it focusable and accessible */
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
  }

  .rps-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, #1e88ff, #2aa0ff);
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    min-height: 48px;
    box-shadow: none;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    text-transform: none;
    letter-spacing: 0.3px;
    /* Security: Prevent text selection */
    user-select: none;
    -webkit-user-select: none;
    /* Performance: Optimize transforms */
    will-change: transform;
    /* Performance: GPU acceleration */
    transform: translateZ(0);
  }

  .rps-file-button svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
  }

  .rps-file-button:hover {
    transform: translateY(-2px);
    box-shadow: none;
    background: linear-gradient(90deg, #3a98ff, #3aaeff);
  }

  .rps-file-info {
    color: rgba(224, 231, 240, 0.9);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .rps-file-info__name {
    font-weight: 600;
  }

  .rps-file-info__note {
    color: rgba(224, 231, 240, 0.65);
    font-size: 0.85rem;
  }

  .rps-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
  }

  .rps-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    transition: all 0.2s ease;
  }

  .rps-file-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .rps-file-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    /* Security: Prevent content overflow */
    overflow: hidden;
  }

  .rps-file-item__name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(224, 231, 240, 0.95);
    /* Security: Prevent extremely long filenames from breaking layout */
    max-width: 100%;
    word-break: break-all;
  }

  .rps-file-item__size {
    font-size: 0.8rem;
    color: rgba(224, 231, 240, 0.6);
  }

  .rps-file-item__remove {
    background: rgba(220, 38, 38, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 5px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 12px;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    /* Security: Prevent accidental clicks */
    user-select: none;
    -webkit-user-select: none;
    /* Performance: Optimize hover effect */
    will-change: transform;
  }

  .rps-file-item__remove:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.5);
    transform: scale(1.1);
  }

  @media (max-width: 640px) {
    .rps-file-button {
      width: 100%;
    }

    /* Ensure coupon and summary match file upload field sizing on mobile */
    .rps-coupon-section {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-coupon-wrapper {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-coupon-input {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-coupon-button {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-summary {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-summary-content {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-payment-breakdown {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
  }

  /* Summary styles consolidated in the pricing section below */

  .rps-card-errors {
    color: #dc2626;
    margin-top: 8px;
    min-height: 20px;
  }

  /* stripe card element container style */
  .rps-card-element {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 5px;
    border: 1px solid var(--rps-border);
    background: var(--rps-input-bg);
    color: var(--rps-input-text);
  }

  /* headings and step labels should be visible */
  .rps-step h3,
  .rps-progress__steps,
  .rps-progress__steps span {
    color: var(--rps-input-text);
  }

  /* Summary strong styles handled in pricing section */

  .rps-step__actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .rps-confirmation {
    border: 1px solid rgba(5, 150, 105, 0.25);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 5px;
    padding: 16px;
  }

  .rps-alert-host {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .rps-alert {
    border-radius: 5px;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--rps-input-text);
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: opacity 0.3s ease;
  }

  .rps-alert--success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
  }

  .rps-alert--error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
  }

  .rps-alert.is-exiting {
    opacity: 0;
  }

  @media (max-width: 640px) {
    .rps-form {
      padding: 24px;
    }

    .rps-field--inline {
      grid-template-columns: 1fr;
    }

    .rps-step__actions {
      flex-direction: column;
    }
  }

  /* Apply Poppins consistently but allow element-level font-size overrides below */
  .rps-form,
  .rps-form * {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
  }

  /* use border-box inside the form so padding doesn't cause overflow on small screens */
  .rps-form,
  .rps-form *,
  .rps-form *::before,
  .rps-form *::after {
    box-sizing: border-box;
  }

  /* Base font-size for the form — most text will inherit this */
  .rps-form {
    font-size: 1rem;
  }

  /* Summary panel font sizes are handled in the main .rps-summary section below */

  /* Step 2 Layout Styles */
  .rps-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rps-input-text);
    margin: 0 0 16px 0;
  }

  /* Smooth transitions for showing/hiding sections */
  .rps-songs-section,
  .rps-pricing-section,
  .rps-form-sections {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .rps-songs-section[style*="display: none"],
  .rps-pricing-section[style*="display: none"],
  .rps-form-sections[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
  }

  /* Mix Type Selection */
  .rps-mix-section {
    margin-bottom: 32px;
  }

  .rps-mix-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* New horizontal layout for mix options */
  .rps-mix-options-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    width: 100%;
    align-items: start;
  }

  .rps-mix-option-container {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  /* Responsive layout for mobile */
  @media (max-width: 640px) {
    .rps-mix-options-horizontal {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .rps-mix-option-container {
      width: 100%;
    }
  }

  .rps-mix-option-container {
    border: 2px solid var(--rps-border);
    border-radius: 5px;
    background: var(--rps-input-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .rps-mix-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    margin: 0;
  }

  /* Quantity box styles */
  .rps-quantity-box {
    background: linear-gradient(135deg, rgba(24, 35, 47, 0.8) 0%, rgba(41, 56, 71, 0.9) 100%);
    border-top: 1px solid var(--rps-border);
    border-radius: 0;
    padding: 16px 20px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    display: none;
  }

  .rps-mix-option-container:has(input:checked)>.rps-quantity-box {
    display: block !important;
    animation: slideDown 0.3s ease-out;
  }

  .rps-mix-option-container:not(:has(input:checked))>.rps-quantity-box {
    display: none !important;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
      padding-top: 0;
      padding-bottom: 0;
    }

    to {
      opacity: 1;
      max-height: 200px;
      padding-top: 16px;
      padding-bottom: 16px;
    }
  }

  .rps-quantity-box .rps-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
  }

  .rps-quantity-box .rps-quantity-minus,
  .rps-quantity-box .rps-quantity-plus {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(60, 71, 93, 0.6);
    border-radius: 5px;
    background: var(--rps-input-bg);
    color: var(--rps-input-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .rps-quantity-box .rps-quantity-minus:hover,
  .rps-quantity-box .rps-quantity-plus:hover {
    border-color: var(--rps-primary);
    background: rgba(58, 160, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(58, 160, 255, 0.2);
  }

  .rps-quantity-box .rps-quantity-input {
    width: 50px;
    height: 32px;
    text-align: center;
    background: var(--rps-bg);
    border: 1px solid rgba(60, 71, 93, 0.6);
    border-radius: 5px;
    color: var(--rps-input-text);
    font-size: 14px;
    font-weight: 600;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    appearance: textfield;
    -moz-appearance: textfield;
  }

  /* Hide Chrome/Safari/Edge spinner arrows */
  .rps-quantity-box .rps-quantity-input::-webkit-outer-spin-button,
  .rps-quantity-box .rps-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .rps-quantity-box .rps-service-price {
    display: none;
  }

  .rps-mix-option-container:has(input:checked) {
    border-color: var(--rps-primary);
    background: linear-gradient(135deg, rgba(58, 160, 255, 0.15) 0%, rgba(58, 160, 255, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(58, 160, 255, 0.2);
    transform: translateY(-1px);
  }

  .rps-mix-option-container:hover {
    border-color: rgba(58, 160, 255, 0.6);
    background: rgba(58, 160, 255, 0.08);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
  }

  .rps-mix-option input[type="checkbox"] {
    display: none;
  }

  .rps-mix-option__checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--rps-border);
    border-radius: 5px;
    position: relative;
    background: var(--rps-input-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .rps-mix-option-container:has(input:checked) .rps-mix-option__checkmark {
    border-color: var(--rps-primary);
    background: linear-gradient(135deg, var(--rps-primary) 0%, var(--rps-primary-hover) 100%);
    box-shadow: 0 4px 8px rgba(58, 160, 255, 0.3);
    transform: scale(1.1);
  }

  .rps-mix-option-container:has(input:checked) .rps-mix-option__checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    color: white;
    font-size: 12px;
    font-weight: 700;
    transform: translate(-50%, -50%);
  }

  .rps-mix-option__text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--rps-input-text);
  }

  /* Songs Section */
  .rps-songs-section {
    margin-bottom: 32px;
  }

  .rps-songs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .rps-songs-counter {
    background: var(--rps-primary);
    border-radius: 5px;
    padding: 8px 16px;
    min-width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .rps-songs-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    width: 40px;
    outline: none;
  }

  .rps-songs-input::-webkit-outer-spin-button,
  .rps-songs-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .rps-songs-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
  }

  .rps-songs-list {
    background: var(--rps-input-bg);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--rps-border);
  }

  .rps-songs-list-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: rgba(58, 160, 255, 0.1);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--rps-input-text);
    border-bottom: 1px solid var(--rps-border);
  }

  .rps-songs-col,
  .rps-alternate-col,
  .rps-master-col {
    text-align: center;
  }

  .rps-song-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 16px;
    border-bottom: 1px solid var(--rps-border);
    align-items: center;
  }

  .rps-song-item:last-child {
    border-bottom: none;
  }

  .rps-song-name {
    font-weight: 500;
    color: var(--rps-input-text);
  }

  .rps-alternate-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .rps-alternate-input {
    width: 60px;
    padding: 8px;
    background: rgba(58, 160, 255, 0.1);
    border: 1px solid var(--rps-border);
    border-radius: 5px;
    color: var(--rps-input-text);
    text-align: center;
    font-weight: 600;
  }

  .rps-alternate-add {
    width: 32px;
    height: 32px;
    background: var(--rps-primary);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .rps-alternate-add:hover {
    background: var(--rps-primary-hover);
  }

  .rps-master-controls {
    display: flex;
    justify-content: center;
  }

  .rps-master-select {
    background: var(--rps-input-bg);
    border: 1px solid var(--rps-border);
    border-radius: 6px;
    color: var(--rps-input-text);
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  /* Pricing Section */
  .rps-pricing-section {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }

  /* Section Subtitles */
  .rps-section-subtitle {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rps-input-text);
    border-bottom: 2px solid var(--rps-border);
    padding-bottom: 8px;
  }

  /* Pricing Section Divider */
  .rps-pricing-divider {
    height: 1px;
    background: var(--rps-border);
    margin: 1.5rem 0 1.5rem 0;
  }

  /* Coupon Section */
  .rps-coupon-section {
    position: relative;
    margin-bottom: 1rem;
  }

  /* Coupon Notification */
  .rps-coupon-notification {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
  }

  .rps-coupon-notification--success {
    background: #064e3b;
    color: #e6fffa;
    border: 1px solid #10b981;
  }

  .rps-coupon-notification--error {
    background: #5b0f0f;
    color: #fee;
    border: 1px solid #ef4444;
  }

  .rps-coupon-notification--info {
    background: #0b2530;
    color: #e0e7f0;
    border: 1px solid #3aa0ff;
  }

  .rps-coupon-wrapper {
    display: flex;
    gap: 12px;
    align-items: stretch;
    background: var(--rps-input-bg);
    border: 1px solid var(--rps-border);
    border-radius: 12px;
    padding: 4px;
    transition: border-color 0.2s ease;
  }

  .rps-coupon-wrapper:focus-within {
    border-color: var(--rps-primary);
    box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.1);
  }

  .rps-coupon-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--rps-input-text);
    font-size: 16px;
    outline: none;
  }

  .rps-coupon-input::placeholder {
    color: rgba(224, 231, 240, 0.6);
  }

  .rps-coupon-button {
    padding: 12px 24px;
    background: var(--rps-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 90px;
  }

  .rps-coupon-button:hover {
    background: var(--rps-primary-hover);
    transform: translateY(-1px);
  }

  .rps-coupon-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
  }

  /* Summary Styles */
  .rps-summary {
    background: var(--rps-input-bg);
    border: 1px solid var(--rps-border);
    border-radius: 12px;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.5;
  }

  .rps-summary-content {
    padding: 20px;
  }

  .rps-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
  }

  .rps-summary-row:last-child {
    margin-bottom: 0;
  }

  .rps-summary-label {
    font-size: 0.95rem;
    color: rgba(224, 231, 240, 0.9);
    font-weight: 500;
    flex: 1;
  }

  .rps-summary-label--total {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rps-input-text);
  }

  .rps-total-row {
    margin-bottom: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--rps-border);
    border-top: 1px solid var(--rps-border);
  }

  .rps-total {
    color: var(--rps-primary);
    font-size: 1.4rem;
    font-weight: 700;
  }

  .rps-subtotal,
  .rps-balance,
  .rps-due-later {
    font-weight: 600;
    color: var(--rps-input-text);
    font-size: 1rem;
  }

  .rps-discount {
    font-weight: 600;
    color: #059669;
    font-size: 1rem;
  }

  .rps-summary-divider {
    height: 1px;
    background: var(--rps-border);
    margin: 16px 0;
    border: none;
  }

  .rps-summary-divider--thin {
    margin: 12px 0;
    opacity: 0.5;
  }

  .rps-payment-breakdown {
    background: rgba(58, 160, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    padding-bottom: 20px;
  }

  .rps-payment-breakdown .rps-summary-row {
    margin-bottom: 10px;
  }

  .rps-payment-breakdown .rps-summary-row:last-child {
    margin-bottom: 0;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .rps-pricing-section {
      gap: 1.5rem;
      padding: 0 !important;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 100%;
    }

    .rps-pricing-divider {
      width: 100%;
      margin: 1.5rem 0 1.5rem 0 !important;
    }

    .rps-coupon-section {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      box-sizing: border-box !important;
    }

    .rps-coupon-wrapper {
      flex-direction: column;
      align-items: stretch;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-coupon-input {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-coupon-button {
      margin-top: 8px;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-summary {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      box-sizing: border-box !important;
    }

    .rps-summary-content {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-payment-breakdown {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
  }

  /* Very small phones: tighten paddings and font sizes */
  @media (max-width: 480px) {

    /* Coupon */
    .rps-coupon-section {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-coupon-wrapper {
      padding: 3px;
      border-radius: 10px;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-coupon-input {
      padding: 12px 14px;
      font-size: 15px;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-coupon-button {
      padding: 12px 14px;
      font-size: 15px;
      min-width: 0;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    /* Summary */
    .rps-summary {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-summary-content {
      padding: 16px;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rps-summary-row {
      margin-bottom: 10px;
    }

    .rps-total {
      font-size: 1.25rem;
    }

    .rps-summary-label--total {
      font-size: 1rem;
    }

    .rps-pricing-divider {
      width: 100%;
      margin: 1.5rem 0 1.5rem 0 !important;
    }

    .rps-payment-breakdown {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
  }

  /* Mix Configuration Styles */
  .rps-mix-configuration {
    margin-top: 24px;
  }

  .rps-mix-type-section {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--rps-input-bg);
    border: 1px solid var(--rps-border);
    border-radius: 8px;
  }

  .rps-mix-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .rps-mix-type-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rps-input-text);
    margin: 0;
  }

  .rps-mix-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .rps-quantity-btn {
    width: 32px;
    height: 32px;
    background: var(--rps-primary);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .rps-quantity-btn:hover {
    background: var(--rps-primary-hover);
  }

  .rps-quantity-btn:disabled {
    background: var(--rps-border);
    cursor: not-allowed;
  }

  .rps-quantity-input {
    width: 60px;
    padding: 8px;
    background: rgba(58, 160, 255, 0.1);
    border: 1px solid var(--rps-border);
    border-radius: 6px;
    color: var(--rps-input-text);
    text-align: center;
    font-weight: 600;
  }

  /* Service Items */
  .rps-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
  }

  .rps-service-name {
    flex: 1;
    font-weight: 500;
  }

  .rps-service-price {
    display: none;
  }

  /* Pricing Breakdown */
  .rps-pricing-breakdown {
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .rps-pricing-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--rps-input-text);
    margin-bottom: 16px;
  }

  .rps-pricing-list {
    background: var(--rps-input-bg);
    border: 1px solid var(--rps-border);
    border-radius: 8px;
    padding: 16px;
  }

  .rps-pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .rps-pricing-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .rps-pricing-label {
    color: var(--rps-input-text);
    font-weight: 500;
  }

  .rps-pricing-value {
    color: #4CAF50;
    font-weight: 600;
  }

  /* Order Summary Styles */
  .rps-order-summary-section {
    margin-top: 24px;
  }

  .rps-order-summary {
    background: var(--rps-input-bg);
    border: 1px solid var(--rps-border);
    border-radius: 12px;
    overflow: hidden;
  }

  /* Order summary header uses the same grid layout as the rows so spacing is consistent */
  .rps-order-summary-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* four equal columns so gaps are equal */
    gap: 12px;
    /* consistent gap between columns */
    background: rgba(58, 160, 255, 0.1);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--rps-input-text);
    border-bottom: 1px solid var(--rps-border);
    align-items: center;
  }

  .rps-summary-col-mix {
    text-align: left;
  }

  .rps-summary-col-alternate,
  .rps-summary-col-master {
    text-align: center;
  }

  .rps-summary-col-rate {
    text-align: right;
  }

  .rps-order-item {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* match header layout: four equal columns */
    gap: 12px;
    /* same column gap as header */
    padding: 16px;
    border-bottom: 1px solid var(--rps-border);
    align-items: center;
  }

  .rps-rate-value {
    font-weight: 700;
  }

  /* Desktop alignment rules */
  .rps-item-mix {
    text-align: left;
  }

  .rps-item-mix .rps-item-value {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .rps-item-alternate,
  .rps-item-master {
    justify-content: center;
  }

  .rps-item-alternate .rps-item-value,
  .rps-item-master .rps-item-value {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .rps-item-rate {
    text-align: right;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  /* Keep song input from stretching the layout */
  .rps-item-mix .rps-song-name-input {
    max-width: 84%;
  }

  .rps-order-item:last-child {
    border-bottom: none;
  }

  .rps-item-mix {
    font-weight: 500;
    color: var(--rps-input-text);
  }

  /* Duplicate rules removed - see lines 1239-1274 for alternate controls and mobile overrides at lines 289-341 */

  .rps-item-alternate,
  .rps-item-master {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .rps-master-select {
    padding: 4px 8px;
    border: 1px solid var(--rps-border);
    border-radius: 4px;
    background: var(--rps-input-bg);
    color: var(--rps-input-text);
    min-width: 100px;
    font-size: 14px;
  }

  .rps-order-mix-name {
    font-weight: 500;
    color: var(--rps-input-text);
  }

  .rps-order-alternate-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .rps-order-alternate-input {
    width: 60px;
    padding: 8px;
    background: rgba(58, 160, 255, 0.1);
    border: 1px solid var(--rps-border);
    border-radius: 6px;
    color: var(--rps-input-text);
    text-align: center;
    font-weight: 600;
    /* Remove spinner arrows */
    -moz-appearance: textfield;
    appearance: textfield;
  }

  .rps-order-alternate-input::-webkit-outer-spin-button,
  .rps-order-alternate-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .rps-order-alternate-btn {
    width: 28px;
    height: 28px;
    background: var(--rps-primary);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .rps-order-alternate-btn:hover {
    background: var(--rps-primary-hover);
  }

  .rps-order-master-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .rps-master-radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .rps-master-radio-option input[type="radio"] {
    margin: 0;
    accent-color: var(--rps-primary);
  }

  .rps-master-radio-option label {
    font-size: 0.9rem;
    color: var(--rps-input-text);
    margin: 0;
    cursor: pointer;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .rps-pricing-section {
      gap: 1.5rem;
      align-items: center !important;
      padding: 0 20px;
    }

    .rps-mix-type-header {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }

    .rps-order-summary-header,
    .rps-order-item {
      grid-template-columns: 1fr;
      gap: 12px;
      text-align: left;
    }

    .rps-order-alternate-controls,
    .rps-order-master-controls {
      justify-content: flex-start;
    }
  }

  /* Consent text and small notes should be smaller than the base */
  .rps-consent,
  .rps-consent *,
  .rps-secure-note,
  .rps-deposit-note small,
  .rps-deposit-warning small {
    /* set consistent small-note size; using rem keeps this relative to the form base */
    font-size: 0.70rem;
    line-height: 1.3;
  }

  /* Consent checkbox/label should be more readable than other small notes.
   Adjust the value below to change the consent text size. */
  .rps-consent {
    font-size: 0.95rem;
    /* increase consent text for readability */
  }

  .rps-consent * {
    font-size: inherit;
  }

  /* Required star positioning inside consent - needs to override the wildcard selector above */
  .rps-consent .rps-required-star {
    display: inline-block !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-left: 2px;
    vertical-align: baseline !important;
  }

  .rps-consent-text {
    flex: 1 !important;
    display: inline !important;
  }

  /* Error and helper messages slightly smaller and readable */
  .rps-card-errors,
  .rps-consent-error {
    font-size: 0.8125rem;
    line-height: 1.2;
  }

  /* Keep very small UI bits (like small tags inside summary) readable but compact */
  .rps-deposit-note small,
  .rps-deposit-warning small {
    font-size: 0.8125rem;
  }

  /* Additional mobile tweaks to prevent overflow of buttons and helper text */
  @media (max-width: 640px) {

    /* allow buttons to shrink on very small screens */
    #rps-fixed-back,
    #rps-fixed-primary {
      min-width: 0;
      width: 100%;
      max-width: 100%;
    }

    .rps-button {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    /* helper text should wrap instead of forcing horizontal scroll */
    .rps-fixed-help {
      white-space: normal;
      padding-left: 12px;
      padding-right: 12px;
      word-break: break-word;
    }
  }

  /* PayPal button container tweaks so the PayPal smart button sits well with the form
   and matches the form width/radius. The SDK renders its own markup; these rules
   are intentionally conservative but help the button align visually. */
  #rps-paypal-button-container {
    width: 100%;
    max-width: none;
  }

  #rps-paypal-button-container>* {
    width: 100% !important;
  }

  /* Keep Google/Apple Pay button width consistent with tabs/PayPal */
  #rps-payment-request-button {
    width: 100% !important;
  }

  /* Divider under coupon */
  .rps-divider {
    border: none;
    border-top: 1px solid rgba(224, 231, 240, 0.18);
    margin: 2rem 0 2rem 0;
  }

  /* Loading Overlay - Optimized for performance and security */
  .rps-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 35, 47, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in;
    /* Security: Prevent interaction with underlying content */
    pointer-events: all;
    /* Performance: Use hardware acceleration */
    transform: translateZ(0);
    will-change: opacity;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .rps-loading-content {
    text-align: center;
    padding: 40px;
    background: rgba(41, 56, 71, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(58, 160, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 400px;
  }

  /* Loader container to hold both spinner and checkmark */
  .rps-loader-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
  }

  /* Performance: Optimize spinner animation with GPU acceleration */
  .rps-spinner {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid rgba(58, 160, 255, 0.2);
    border-top-color: #3aa0ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    will-change: transform;
    transition: opacity 0.3s ease;
  }

  @keyframes spin {
    from {
      transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }

  /* Success checkmark animation */
  .rps-success-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .rps-success-checkmark.active {
    opacity: 1;
  }

  .rps-checkmark-svg {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: block;
    animation: scaleIn 0.3s ease-in-out forwards;
  }

  .rps-checkmark-circle {
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
  }

  .rps-checkmark-check {
    stroke-dasharray: 85;
    stroke-dashoffset: 85;
    animation: drawCheck 0.5s ease-in-out 0.2s forwards;
  }

  @keyframes scaleIn {
    0% {
      transform: scale(0);
      opacity: 0;
    }

    50% {
      transform: scale(1.1);
    }

    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  @keyframes fadeIn {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }

  @keyframes drawCheck {
    0% {
      stroke-dashoffset: 85;
    }

    100% {
      stroke-dashoffset: 0;
    }
  }

  .rps-loading-text {
    color: #e0e7f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
  }

  .rps-loading-text.success {
    color: #4caf50;
  }

  .rps-loading-subtext {
    color: rgba(224, 231, 240, 0.7);
    font-size: 0.9rem;
    display: block;
    transition: color 0.3s ease;
  }

  .rps-loading-subtext.success {
    color: rgba(76, 175, 80, 0.8);
  }

  /* Flatpickr theme overrides to match the form */
  .flatpickr-calendar {
    background: #18232f;
    /* requested calendar background */
    border: 1px solid var(--rps-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    font-family: inherit;
    color: #ffffff;
    /* day numbers default */
    font-size: 1rem;
  }

  .flatpickr-innerContainer,
  .flatpickr-days,
  .flatpickr-days .dayContainer {
    background: #18232f !important;
    /* ensure grid background is dark */
  }

  .flatpickr-months,
  .flatpickr-weekdays {
    background: #1f8aff;
    /* header/banner */
    color: #ffffff;
  }

  .flatpickr-months .flatpickr-month,
  .flatpickr-weekday {
    color: #ffffff !important;
  }

  .flatpickr-current-month .numInputWrapper input,
  .flatpickr-current-month .flatpickr-monthDropdown-months {
    color: #ffffff;
  }

  .flatpickr-day {
    color: #ffffff !important;
    /* numbers white */
    border-radius: 6px;
    width: var(--rps-dp-day-size);
    height: var(--rps-dp-day-size);
    line-height: var(--rps-dp-day-size);
    font-size: var(--rps-dp-font-size);
  }

  .flatpickr-day:hover {
    background: rgba(58, 160, 255, 0.15);
    border-color: var(--rps-primary);
  }

  .flatpickr-day.selected,
  .flatpickr-day.startRange,
  .flatpickr-day.endRange {
    background: #1f8aff;
    /* match banner */
    border-color: #1f8aff;
    color: #fff;
  }

  .flatpickr-day.today {
    border-color: #1f8aff;
  }

  .flatpickr-day.flatpickr-disabled,
  .flatpickr-day.nextMonthDay,
  .flatpickr-day.prevMonthDay {
    color: rgba(255, 255, 255, 0.35) !important;
    background: transparent !important;
  }

  /* Optional: slightly larger cells on wider screens */
  @media (min-width: 1024px) {
    :root {
      --rps-dp-day-size: 48px;
    }
  }

  .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
  .flatpickr-calendar select.flatpickr-monthDropdown-months,
  .flatpickr-calendar .numInputWrapper input {
    color: #ffffff;
  }

  /* Month dropdown background and text colors */
  .flatpickr-calendar select.flatpickr-monthDropdown-months {
    background: #18232f !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .flatpickr-calendar select.flatpickr-monthDropdown-months option {
    background: #18232f !important;
    color: #ffffff !important;
  }

  /* Year input next to month dropdown */
  .flatpickr-calendar .numInputWrapper input {
    background: #18232f !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* File Upload Sections for Mix Types */
  .rps-file-upload-sections {
    margin-top: 20px;
  }

  .rps-file-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--rps-border);
    border-radius: 8px;
    background: rgba(41, 56, 71, 0.3);
  }

  .rps-file-section-title {
    color: var(--rps-label);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rps-border);
  }

  .rps-file-section .rps-field {
    margin-bottom: 0;
  }

  .rps-file-section .rps-file-note {
    margin-top: 8px;
    font-size: 0.875rem;
    color: rgba(224, 231, 240, 0.7);
  }

  --rps-dp-font-size: 0.95rem;
}

/* Performance: Use contain for layout optimization */
.rps-form {
  background: var(--rps-bg);
  border-radius: 5px;
  padding: 28px;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  color: var(--rps-input-text);
  contain: layout style;
}

.rps-progress {
  margin-bottom: 24px;
  position: relative;
}

.rps-progress__bar {
  height: 6px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.rps-progress__bar span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 33%;
  background: var(--rps-progress);
  border-radius: inherit;
  transition: width 0.4s ease;
  will-change: width;
}

.rps-progress__steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 12px;
  color: var(--rps-label);
}

.rps-progress__steps span.active {
  color: var(--rps-primary);
  font-weight: 600;
}

.rps-form__wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rps-step {
  display: none;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rps-step.active {
  display: block;
}

.rps-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  /* allow absolutely-positioned required star */
}

.rps-field label {
  font-weight: 600;
  color: var(--rps-label);
  margin-bottom: 8px;
}

/* small red star shown for required fields */
.rps-required-star {
  color: #ff6b6b;
  margin-left: 6px;
  font-weight: 700;
}

/* when the star follows an input (placeholder-only UI), position it inside the input */
.rps-field input[required]+.rps-required-star,
.rps-field textarea[required]+.rps-required-star,
.rps-field select[required]+.rps-required-star {
  position: absolute;
  right: 12px;
  top: 12px;
  pointer-events: none;
  font-size: 1rem;
}

.rps-field input,
.rps-field textarea,
.rps-field select {
  border-radius: 5px;
  border: 1px solid var(--rps-border);
  padding: 12px 14px;
  font-size: 1rem;
  background: var(--rps-input-bg);
  color: var(--rps-input-text);
  transition: border 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* Security: Prevent layout breaking from long inputs */
  overflow: hidden;
  text-overflow: ellipsis;
}

.rps-field textarea {
  /* Security: Allow text wrapping in textarea */
  overflow: auto;
  text-overflow: clip;
  resize: vertical;
  min-height: 80px;
  max-height: 300px;
}

.rps-field input:focus,
.rps-field textarea:focus,
.rps-field select:focus {
  outline: none;
  border-color: var(--rps-primary);
  box-shadow: 0 0 0 4px rgba(58, 160, 255, 0.12);
}

/* Ensure select dropdown uses accent color */
.rps-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233aa0ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.rps-field select:focus,
.rps-field select:focus-visible {
  outline: none !important;
  outline-width: 0 !important;
  outline-color: transparent !important;
  border-color: var(--rps-primary) !important;
  box-shadow: 0 0 0 4px rgba(58, 160, 255, 0.12) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.rps-field select option {
  background: var(--rps-input-bg);
  color: var(--rps-input-text);
}

/* Master select dropdown specific styling */
.rps-master-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233aa0ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  border-radius: 5px;
  border: 1px solid var(--rps-border);
  padding: 8px 36px 8px 12px;
  font-size: 0.95rem;
  background-color: var(--rps-input-bg);
  color: var(--rps-input-text);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.rps-master-select:focus,
.rps-master-select:focus-visible {
  outline: none !important;
  outline-width: 0 !important;
  outline-color: transparent !important;
  outline-offset: 0 !important;
  border-color: var(--rps-primary) !important;
  box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.12) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.rps-master-select option {
  background: var(--rps-input-bg);
  color: var(--rps-input-text);
}

/* Box-style master controls (yes/no) */
.rps-master-box {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.rps-master-box .rps-master-btn {
  background: var(--rps-input-bg);
  color: var(--rps-input-text);
  border: 1px solid var(--rps-border);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.rps-master-box .rps-master-btn--active {
  background: var(--rps-primary);
  border-color: var(--rps-primary);
  color: #fff;
}

.rps-master-box .rps-master-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.12);
}

/* Order summary responsive layout */
.rps-order-items {
  display: grid;
  gap: 10px;
}

.rps-order-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
}

.rps-item-heading {
  display: none;
  /* visible on mobile only */
  font-weight: 700;
  color: var(--rps-label);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.rps-item-value {
  display: block;
}

@media (max-width: 720px) {

  /* Hide table-like header on mobile since each card has its own headings */
  .rps-order-summary-header {
    display: none !important;
  }

  .rps-order-item {
    display: block;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
  }

  .rps-item-heading {
    display: block;
  }

  .rps-item-value {
    margin-bottom: 10px;
  }

  .rps-master-box {
    margin-top: 6px;
  }

  .rps-alternate-controls {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  /* Align all items to the left on mobile to match screenshot */
  .rps-order-item .rps-item-mix,
  .rps-order-item .rps-item-alternate,
  .rps-order-item .rps-item-master,
  .rps-order-item .rps-item-rate {
    justify-content: flex-start !important;
  }

  .rps-order-item .rps-item-mix .rps-item-value,
  .rps-order-item .rps-item-alternate .rps-item-value,
  .rps-order-item .rps-item-master .rps-item-value,
  .rps-order-item .rps-item-rate .rps-item-value {
    text-align: left !important;
    justify-content: flex-start !important;
    display: flex !important;
  }

  /* For mobile stacked cards, show rate value left-aligned with other content */
  .rps-order-item .rps-item-rate {
    text-align: left !important;
    justify-content: flex-start !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    align-items: baseline !important;
  }

  .rps-order-item .rps-item-rate .rps-item-heading {
    display: block !important;
    text-align: left !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
  }

  .rps-order-item .rps-item-rate .rps-item-value {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    line-height: 1.2 !important;
  }

  .rps-order-item .rps-item-rate .rps-rate-value {
    text-align: left !important;
    line-height: 1.2 !important;
  }

  /* Mobile visual refinements to match screenshot */
  .rps-mix-label {
    font-weight: 600;
    font-size: 0.98rem;
    margin-bottom: 6px;
    color: var(--rps-input-text);
  }

  /* Make alternate mix controls touch-friendly and visually similar to mock */
  .rps-alternate-controls {
    gap: 10px;
  }

  .rps-alternate-minus,
  .rps-alternate-plus {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--rps-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .rps-alternate-value {
    min-width: 40px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--rps-input-text);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    font-weight: 600;
    text-align: center;
  }

  /* Master yes/no as compact pills like the mock */
  .rps-master-box {
    gap: 8px;
  }

  .rps-master-box .rps-master-btn {
    padding: 8px 12px;
    min-width: 44px;
    height: 34px;
    border-radius: 18px;
    font-size: 0.92rem;
    background: var(--rps-input-bg);
    color: var(--rps-input-text);
    border: 1px solid var(--rps-border);
  }

  .rps-master-box .rps-master-btn--active {
    background: var(--rps-primary);
    color: #fff;
    border-color: var(--rps-primary);
  }

  /* Emphasize rate on mobile to match design and keep it left-aligned */
  .rps-order-item .rps-item-rate {
    text-align: left !important;
    justify-content: flex-start !important;
    justify-self: start !important;
  }

  .rps-order-item .rps-item-rate .rps-rate-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--rps-input-text);
    text-align: left !important;
  }
}

/* Song name input shown under each Mix in the order summary */
.rps-song-name-input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--rps-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--rps-input-text);
  font-size: 0.95rem;
}

.rps-song-name-input::placeholder {
  color: rgba(224, 231, 240, 0.5);
}

/* Match focus style of other inputs */
.rps-song-name-input:focus {
  outline: none;
  border-color: var(--rps-primary);
  box-shadow: 0 0 0 4px rgba(58, 160, 255, 0.12);
}

/* Desktop alternate button styles - blue background */
.rps-alternate-minus,
.rps-alternate-plus {
  width: 28px;
  height: 28px;
  border: 1px solid var(--rps-border);
  background: var(--rps-primary);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.rps-alternate-minus:hover,
.rps-alternate-plus:hover {
  background: var(--rps-primary-hover);
}

.rps-alternate-value {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--rps-input-bg);
  border: 1px solid var(--rps-border);
  border-radius: 4px;
  font-size: 14px;
}

/* Make master and alternate buttons slightly larger for touch */
.rps-master-box .rps-master-btn {
  min-width: 44px;
  height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
}

/* placeholder color */
.rps-field input::placeholder,
.rps-field textarea::placeholder {
  color: rgba(224, 231, 240, 0.65);
}

.rps-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--rps-input-text) 50%),
    linear-gradient(135deg, var(--rps-input-text) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 4px), calc(100% - 14px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}

.rps-field--inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

/* Consent error styles */
.rps-field--consent {
  position: relative;
}

.rps-field--consent.rps-error {
  border-radius: 5px;
  padding: 8px;
  border: 1px solid #ff6b6b;
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.02), transparent);
}

.rps-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--rps-input-text);
  font-size: 0.98rem;
  line-height: 1.35;
  flex-wrap: nowrap;
}

.rps-consent-text {
  flex: 1;
  display: inline;
}

.rps-consent .rps-required-star {
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 2px;
  vertical-align: baseline;
}

.rps-consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--rps-primary);
  border-radius: 4px;
}

@media (max-width: 640px) {
  .rps-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 6px;
  }
}

.rps-consent-error {
  margin-top: 8px;
  color: var(--rps-input-text);
  font-size: 0.9rem;
}

.rps-button {
  background: var(--rps-primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 12px 28px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  /* Security: Prevent text selection for better UX */
  user-select: none;
  -webkit-user-select: none;
  /* Performance: Optimize hover transforms */
  will-change: transform;
}

.rps-button:hover {
  transform: translateY(-1px);
  background: var(--rps-primary-hover);
}

/* Security: Disabled state prevents interaction */
.rps-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* Gradient primary next button with microphone icon */
.rps-button--primary-gradient {
  background: linear-gradient(90deg, #1e88ff, #2aa0ff);
  box-shadow: 0 8px 24px rgba(42, 138, 230, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rps-button--primary-gradient:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.rps-button__icon {
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
}

.rps-icon {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
  margin-left: 6px;
}

.rps-secure-note {
  color: rgba(224, 231, 240, 0.9);
}

.rps-deposit-note small {
  color: rgba(224, 231, 240, 0.95);
  font-size: 0.95rem;
}

.rps-deposit-warning small {
  color: rgba(224, 231, 240, 0.78);
  font-size: 0.85rem;
}

.rps-button--ghost {
  background: transparent;
  color: var(--rps-input-text);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

/* Payment method tabs (replace radio inputs) */
.rps-payment-tabs__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  /* allow wrap on small screens */
}

.rps-payment-tabs__list .rps-pay-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  /* grow/shrink equally */
  min-width: 160px;
  /* reasonable minimum before wrapping */
}

.rps-payment-tab {
  background: transparent;
  color: var(--rps-input-text);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 1 1 0;
  /* grow/shrink equally like pay items */
  min-width: 160px;
}

.rps-payment-tab:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.rps-payment-tab--active {
  /* default active uses primary gradient to match primary buttons */
  background: linear-gradient(90deg, #1e88ff, #2aa0ff);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* PayPal-specific active style to use PayPal gold + blue text */
.rps-payment-tab--active[data-method="paypal"],
.rps-payment-tab--active[data-method='paypal'] {
  background: #f6c94a;
  /* PayPal-like gold */
  color: #003087;
  /* PayPal blue */
}

/* Helper text shown when payment methods are disabled */
.rps-payment-helper {
  color: rgba(224, 231, 240, 0.75);
  font-size: 0.9rem;
}

/* Disabled tab appearance */
.rps-payment-tab[disabled],
.rps-payment-tab[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  background: transparent;
  color: rgba(224, 231, 240, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* disabled button appearance */
.rps-button--disabled,
.rps-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.05);
}

/* Fixed footer primary button */
.rps-fixed-footer {
  position: static;
  /* not sticky any more */
  width: 100%;
  background: transparent;
  padding-top: 18px;
  display: flex;
  justify-content: center;
  /* center the button in the footer */
}

.rps-fixed-footer__inner {
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  /* back left, primary right */
  align-items: center;
}

/* when only the primary button is present align it to the right */
.rps-fixed-footer__inner.rps-footer--single {
  justify-content: flex-end;
}

/* add space above footer so it doesn't hug the form */
.rps-fixed-footer {
  margin-top: 24px;
}

.rps-fixed-footer #rps-fixed-primary {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* ensure back and primary align and have space */
#rps-fixed-back {
  margin-right: 12px;
  min-width: 120px;
}

#rps-fixed-primary {
  min-width: 200px;
}

/* hide in-step primary gradient buttons to avoid duplicate actions */
.rps-step__actions .rps-button--primary-gradient {
  display: none;
}

@media (max-width: 640px) {
  .rps-fixed-footer__inner {
    flex-direction: column;
    gap: 8px;
  }

  #rps-fixed-back,
  #rps-fixed-primary {
    width: 100%;
  }
}

/* inline helper message shown under fixed footer buttons */
.rps-fixed-help {
  margin-top: 20px;
  color: rgba(255, 5, 5, 0.78);
  font-size: 0.72rem;
  /* slightly smaller */
  text-align: center;
  /* centered under the primary button */
  display: block;
  line-height: 1;
  white-space: nowrap;
  /* keep on one line */
}

@media (max-width: 640px) {
  .rps-fixed-help {
    text-align: center;
    /* center on small screens under stacked buttons */
    padding-right: 0;
  }
}

/* Summary styles consolidated below in the pricing section */

/* Custom file upload UI */
.rps-file-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rps-file-button-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rps-file-input {
  /* Visually hide native input but keep it focusable and accessible */
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.rps-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #1e88ff, #2aa0ff);
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px;
  box-shadow: none;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
  text-transform: none;
  letter-spacing: 0.3px;
  /* Security: Prevent text selection */
  user-select: none;
  -webkit-user-select: none;
  /* Performance: Optimize transforms */
  will-change: transform;
  /* Performance: GPU acceleration */
  transform: translateZ(0);
}

.rps-file-button svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.rps-file-button:hover {
  transform: translateY(-2px);
  box-shadow: none;
  background: linear-gradient(90deg, #3a98ff, #3aaeff);
}

.rps-file-info {
  color: rgba(224, 231, 240, 0.9);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rps-file-info__name {
  font-weight: 600;
}

.rps-file-info__note {
  color: rgba(224, 231, 240, 0.65);
  font-size: 0.85rem;
}

.rps-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.rps-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.rps-file-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.rps-file-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  /* Security: Prevent content overflow */
  overflow: hidden;
}

.rps-file-item__name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(224, 231, 240, 0.95);
  /* Security: Prevent extremely long filenames from breaking layout */
  max-width: 100%;
  word-break: break-all;
}

.rps-file-item__size {
  font-size: 0.8rem;
  color: rgba(224, 231, 240, 0.6);
}

.rps-file-item__remove {
  background: rgba(220, 38, 38, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 5px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 12px;
  transition: all 0.2s ease;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  /* Security: Prevent accidental clicks */
  user-select: none;
  -webkit-user-select: none;
  /* Performance: Optimize hover effect */
  will-change: transform;
}

.rps-file-item__remove:hover {
  background: rgba(220, 38, 38, 0.25);
  border-color: rgba(220, 38, 38, 0.5);
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .rps-file-button {
    width: 100%;
  }

  /* Ensure coupon and summary match file upload field sizing on mobile */
  .rps-coupon-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-coupon-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-coupon-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-coupon-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-summary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-summary-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-payment-breakdown {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Summary styles consolidated in the pricing section below */

.rps-card-errors {
  color: #dc2626;
  margin-top: 8px;
  min-height: 20px;
}

/* stripe card element container style */
.rps-card-element {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid var(--rps-border);
  background: var(--rps-input-bg);
  color: var(--rps-input-text);
}

/* headings and step labels should be visible */
.rps-step h3,
.rps-progress__steps,
.rps-progress__steps span {
  color: var(--rps-input-text);
}

/* Summary strong styles handled in pricing section */

.rps-step__actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.rps-confirmation {
  border: 1px solid rgba(5, 150, 105, 0.25);
  background: rgba(16, 185, 129, 0.1);
  border-radius: 5px;
  padding: 16px;
}

.rps-alert-host {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.rps-alert {
  border-radius: 5px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--rps-input-text);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: opacity 0.3s ease;
}

.rps-alert--success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.rps-alert--error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.rps-alert.is-exiting {
  opacity: 0;
}

@media (max-width: 640px) {
  .rps-form {
    padding: 24px;
  }

  .rps-field--inline {
    grid-template-columns: 1fr;
  }

  .rps-step__actions {
    flex-direction: column;
  }
}

/* Apply Poppins consistently but allow element-level font-size overrides below */
.rps-form,
.rps-form * {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.4;
}

/* use border-box inside the form so padding doesn't cause overflow on small screens */
.rps-form,
.rps-form *,
.rps-form *::before,
.rps-form *::after {
  box-sizing: border-box;
}

/* Base font-size for the form — most text will inherit this */
.rps-form {
  font-size: 1rem;
}

/* Summary panel font sizes are handled in the main .rps-summary section below */

/* Step 2 Layout Styles */
.rps-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rps-input-text);
  margin: 0 0 16px 0;
}

/* Smooth transitions for showing/hiding sections */
.rps-songs-section,
.rps-pricing-section,
.rps-form-sections {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rps-songs-section[style*="display: none"],
.rps-pricing-section[style*="display: none"],
.rps-form-sections[style*="display: none"] {
  opacity: 0;
  transform: translateY(-10px);
}

/* Mix Type Selection */
.rps-mix-section {
  margin-bottom: 32px;
}

.rps-mix-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* New horizontal layout for mix options */
.rps-mix-options-horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  width: 100%;
  align-items: start;
}

.rps-mix-option-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Responsive layout for mobile */
@media (max-width: 640px) {
  .rps-mix-options-horizontal {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rps-mix-option-container {
    width: 100%;
  }
}

.rps-mix-option-container {
  border: 2px solid var(--rps-border);
  border-radius: 5px;
  background: var(--rps-input-bg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rps-mix-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  margin: 0;
}

/* Quantity box styles */
.rps-quantity-box {
  background: linear-gradient(135deg, rgba(24, 35, 47, 0.8) 0%, rgba(41, 56, 71, 0.9) 100%);
  border-top: 1px solid var(--rps-border);
  border-radius: 0;
  padding: 16px 20px;
  text-align: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  display: none;
}

.rps-mix-option-container:has(input:checked)>.rps-quantity-box {
  display: block !important;
  animation: slideDown 0.3s ease-out;
}

.rps-mix-option-container:not(:has(input:checked))>.rps-quantity-box {
  display: none !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  to {
    opacity: 1;
    max-height: 200px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

.rps-quantity-box .rps-quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}

.rps-quantity-box .rps-quantity-minus,
.rps-quantity-box .rps-quantity-plus {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(60, 71, 93, 0.6);
  border-radius: 5px;
  background: var(--rps-input-bg);
  color: var(--rps-input-text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.rps-quantity-box .rps-quantity-minus:hover,
.rps-quantity-box .rps-quantity-plus:hover {
  border-color: var(--rps-primary);
  background: rgba(58, 160, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(58, 160, 255, 0.2);
}

.rps-quantity-box .rps-quantity-input {
  width: 50px;
  height: 32px;
  text-align: center;
  background: var(--rps-bg);
  border: 1px solid rgba(60, 71, 93, 0.6);
  border-radius: 5px;
  color: var(--rps-input-text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Hide Chrome/Safari/Edge spinner arrows */
.rps-quantity-box .rps-quantity-input::-webkit-outer-spin-button,
.rps-quantity-box .rps-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rps-quantity-box .rps-service-price {
  display: none;
}

.rps-mix-option-container:has(input:checked) {
  border-color: var(--rps-primary);
  background: linear-gradient(135deg, rgba(58, 160, 255, 0.15) 0%, rgba(58, 160, 255, 0.08) 100%);
  box-shadow: 0 4px 12px rgba(58, 160, 255, 0.2);
  transform: translateY(-1px);
}

.rps-mix-option-container:hover {
  border-color: rgba(58, 160, 255, 0.6);
  background: rgba(58, 160, 255, 0.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.rps-mix-option input[type="checkbox"] {
  display: none;
}

.rps-mix-option__checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--rps-border);
  border-radius: 5px;
  position: relative;
  background: var(--rps-input-bg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rps-mix-option-container:has(input:checked) .rps-mix-option__checkmark {
  border-color: var(--rps-primary);
  background: linear-gradient(135deg, var(--rps-primary) 0%, var(--rps-primary-hover) 100%);
  box-shadow: 0 4px 8px rgba(58, 160, 255, 0.3);
  transform: scale(1.1);
}

.rps-mix-option-container:has(input:checked) .rps-mix-option__checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  color: white;
  font-size: 12px;
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.rps-mix-option__text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--rps-input-text);
}

/* Songs Section */
.rps-songs-section {
  margin-bottom: 32px;
}

.rps-songs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.rps-songs-counter {
  background: var(--rps-primary);
  border-radius: 5px;
  padding: 8px 16px;
  min-width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rps-songs-input {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  width: 40px;
  outline: none;
}

.rps-songs-input::-webkit-outer-spin-button,
.rps-songs-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rps-songs-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.rps-songs-list {
  background: var(--rps-input-bg);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--rps-border);
}

.rps-songs-list-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(58, 160, 255, 0.1);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--rps-input-text);
  border-bottom: 1px solid var(--rps-border);
}

.rps-songs-col,
.rps-alternate-col,
.rps-master-col {
  text-align: center;
}

.rps-song-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 16px;
  border-bottom: 1px solid var(--rps-border);
  align-items: center;
}

.rps-song-item:last-child {
  border-bottom: none;
}

.rps-song-name {
  font-weight: 500;
  color: var(--rps-input-text);
}

.rps-alternate-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.rps-alternate-input {
  width: 60px;
  padding: 8px;
  background: rgba(58, 160, 255, 0.1);
  border: 1px solid var(--rps-border);
  border-radius: 5px;
  color: var(--rps-input-text);
  text-align: center;
  font-weight: 600;
}

.rps-alternate-add {
  width: 32px;
  height: 32px;
  background: var(--rps-primary);
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.rps-alternate-add:hover {
  background: var(--rps-primary-hover);
}

.rps-master-controls {
  display: flex;
  justify-content: center;
}

.rps-master-select {
  background: var(--rps-input-bg);
  border: 1px solid var(--rps-border);
  border-radius: 6px;
  color: var(--rps-input-text);
  padding: 8px 12px;
  font-size: 0.9rem;
}

/* Pricing Section */
.rps-pricing-section {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

/* Section Subtitles */
.rps-section-subtitle {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rps-input-text);
  border-bottom: 2px solid var(--rps-border);
  padding-bottom: 8px;
}

/* Pricing Section Divider */
.rps-pricing-divider {
  height: 1px;
  background: var(--rps-border);
  margin: 1.5rem 0 1.5rem 0;
}

/* Coupon Section */
.rps-coupon-section {
  position: relative;
  margin-bottom: 1rem;
}

/* Coupon Notification */
.rps-coupon-notification {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.rps-coupon-notification--success {
  background: #064e3b;
  color: #e6fffa;
  border: 1px solid #10b981;
}

.rps-coupon-notification--error {
  background: #5b0f0f;
  color: #fee;
  border: 1px solid #ef4444;
}

.rps-coupon-notification--info {
  background: #0b2530;
  color: #e0e7f0;
  border: 1px solid #3aa0ff;
}

.rps-coupon-wrapper {
  display: flex;
  gap: 12px;
  align-items: stretch;
  background: var(--rps-input-bg);
  border: 1px solid var(--rps-border);
  border-radius: 12px;
  padding: 4px;
  transition: border-color 0.2s ease;
}

.rps-coupon-wrapper:focus-within {
  border-color: var(--rps-primary);
  box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.1);
}

.rps-coupon-input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--rps-input-text);
  font-size: 16px;
  outline: none;
}

.rps-coupon-input::placeholder {
  color: rgba(224, 231, 240, 0.6);
}

.rps-coupon-button {
  padding: 12px 24px;
  background: var(--rps-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 90px;
}

.rps-coupon-button:hover {
  background: var(--rps-primary-hover);
  transform: translateY(-1px);
}

.rps-coupon-button:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
}

/* Summary Styles */
.rps-summary {
  background: var(--rps-input-bg);
  border: 1px solid var(--rps-border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.5;
}

.rps-summary-content {
  padding: 20px;
}

.rps-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rps-summary-row:last-child {
  margin-bottom: 0;
}

.rps-summary-label {
  font-size: 0.95rem;
  color: rgba(224, 231, 240, 0.9);
  font-weight: 500;
  flex: 1;
}

.rps-summary-label--total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rps-input-text);
}

.rps-total-row {
  margin-bottom: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--rps-border);
  border-top: 1px solid var(--rps-border);
}

.rps-total {
  color: var(--rps-primary);
  font-size: 1.4rem;
  font-weight: 700;
}

.rps-subtotal,
.rps-balance,
.rps-due-later {
  font-weight: 600;
  color: var(--rps-input-text);
  font-size: 1rem;
}

.rps-discount {
  font-weight: 600;
  color: #059669;
  font-size: 1rem;
}

.rps-summary-divider {
  height: 1px;
  background: var(--rps-border);
  margin: 16px 0;
  border: none;
}

.rps-summary-divider--thin {
  margin: 12px 0;
  opacity: 0.5;
}

.rps-payment-breakdown {
  background: rgba(58, 160, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  padding-bottom: 20px;
}

.rps-payment-breakdown .rps-summary-row {
  margin-bottom: 10px;
}

.rps-payment-breakdown .rps-summary-row:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rps-pricing-section {
    gap: 1.5rem;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .rps-pricing-divider {
    width: 100%;
    margin: 1.5rem 0 1.5rem 0 !important;
  }

  .rps-coupon-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .rps-coupon-wrapper {
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-coupon-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-coupon-button {
    margin-top: 8px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-summary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .rps-summary-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-payment-breakdown {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Very small phones: tighten paddings and font sizes */
@media (max-width: 480px) {

  /* Coupon */
  .rps-coupon-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-coupon-wrapper {
    padding: 3px;
    border-radius: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-coupon-input {
    padding: 12px 14px;
    font-size: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-coupon-button {
    padding: 12px 14px;
    font-size: 15px;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Summary */
  .rps-summary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-summary-content {
    padding: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rps-summary-row {
    margin-bottom: 10px;
  }

  .rps-total {
    font-size: 1.25rem;
  }

  .rps-summary-label--total {
    font-size: 1rem;
  }

  .rps-pricing-divider {
    width: 100%;
    margin: 1.5rem 0 1.5rem 0 !important;
  }

  .rps-payment-breakdown {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Mix Configuration Styles */
.rps-mix-configuration {
  margin-top: 24px;
}

.rps-mix-type-section {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--rps-input-bg);
  border: 1px solid var(--rps-border);
  border-radius: 8px;
}

.rps-mix-type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rps-mix-type-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rps-input-text);
  margin: 0;
}

.rps-mix-quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rps-quantity-btn {
  width: 32px;
  height: 32px;
  background: var(--rps-primary);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rps-quantity-btn:hover {
  background: var(--rps-primary-hover);
}

.rps-quantity-btn:disabled {
  background: var(--rps-border);
  cursor: not-allowed;
}

.rps-quantity-input {
  width: 60px;
  padding: 8px;
  background: rgba(58, 160, 255, 0.1);
  border: 1px solid var(--rps-border);
  border-radius: 6px;
  color: var(--rps-input-text);
  text-align: center;
  font-weight: 600;
}

/* Service Items */
.rps-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.rps-service-name {
  flex: 1;
  font-weight: 500;
}

.rps-service-price {
  display: none;
}

/* Pricing Breakdown */
.rps-pricing-breakdown {
  margin-top: 24px;
  margin-bottom: 24px;
}

.rps-pricing-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--rps-input-text);
  margin-bottom: 16px;
}

.rps-pricing-list {
  background: var(--rps-input-bg);
  border: 1px solid var(--rps-border);
  border-radius: 8px;
  padding: 16px;
}

.rps-pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rps-pricing-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rps-pricing-label {
  color: var(--rps-input-text);
  font-weight: 500;
}

.rps-pricing-value {
  color: #4CAF50;
  font-weight: 600;
}

/* Order Summary Styles */
.rps-order-summary-section {
  margin-top: 24px;
}

.rps-order-summary {
  background: var(--rps-input-bg);
  border: 1px solid var(--rps-border);
  border-radius: 12px;
  overflow: hidden;
}

/* Order summary header uses the same grid layout as the rows so spacing is consistent */
.rps-order-summary-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* four equal columns so gaps are equal */
  gap: 12px;
  /* consistent gap between columns */
  background: rgba(58, 160, 255, 0.1);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--rps-input-text);
  border-bottom: 1px solid var(--rps-border);
  align-items: center;
}

.rps-summary-col-mix {
  text-align: left;
}

.rps-summary-col-alternate,
.rps-summary-col-master {
  text-align: center;
}

.rps-summary-col-rate {
  text-align: right;
}

.rps-order-item {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* match header layout: four equal columns */
  gap: 12px;
  /* same column gap as header */
  padding: 16px;
  border-bottom: 1px solid var(--rps-border);
  align-items: center;
}

.rps-rate-value {
  font-weight: 700;
}

/* Desktop alignment rules */
.rps-item-mix {
  text-align: left;
}

.rps-item-mix .rps-item-value {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.rps-item-alternate,
.rps-item-master {
  justify-content: center;
}

.rps-item-alternate .rps-item-value,
.rps-item-master .rps-item-value {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.rps-item-rate {
  text-align: right;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Keep song input from stretching the layout */
.rps-item-mix .rps-song-name-input {
  max-width: 84%;
}

.rps-order-item:last-child {
  border-bottom: none;
}

.rps-item-mix {
  font-weight: 500;
  color: var(--rps-input-text);
}

/* Duplicate rules removed - see lines 1239-1274 for alternate controls and mobile overrides at lines 289-341 */

.rps-item-alternate,
.rps-item-master {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rps-master-select {
  padding: 4px 8px;
  border: 1px solid var(--rps-border);
  border-radius: 4px;
  background: var(--rps-input-bg);
  color: var(--rps-input-text);
  min-width: 100px;
  font-size: 14px;
}

.rps-order-mix-name {
  font-weight: 500;
  color: var(--rps-input-text);
}

.rps-order-alternate-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.rps-order-alternate-input {
  width: 60px;
  padding: 8px;
  background: rgba(58, 160, 255, 0.1);
  border: 1px solid var(--rps-border);
  border-radius: 6px;
  color: var(--rps-input-text);
  text-align: center;
  font-weight: 600;
  /* Remove spinner arrows */
  -moz-appearance: textfield;
  appearance: textfield;
}

.rps-order-alternate-input::-webkit-outer-spin-button,
.rps-order-alternate-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rps-order-alternate-btn {
  width: 28px;
  height: 28px;
  background: var(--rps-primary);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rps-order-alternate-btn:hover {
  background: var(--rps-primary-hover);
}

.rps-order-master-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.rps-master-radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rps-master-radio-option input[type="radio"] {
  margin: 0;
  accent-color: var(--rps-primary);
}

.rps-master-radio-option label {
  font-size: 0.9rem;
  color: var(--rps-input-text);
  margin: 0;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rps-pricing-section {
    gap: 1.5rem;
    align-items: center !important;
    padding: 0 20px;
  }

  .rps-mix-type-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .rps-order-summary-header,
  .rps-order-item {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
  }

  .rps-order-alternate-controls,
  .rps-order-master-controls {
    justify-content: flex-start;
  }
}

/* Consent text and small notes should be smaller than the base */
.rps-consent,
.rps-consent *,
.rps-secure-note,
.rps-deposit-note small,
.rps-deposit-warning small {
  /* set consistent small-note size; using rem keeps this relative to the form base */
  font-size: 0.70rem;
  line-height: 1.3;
}

/* Consent checkbox/label should be more readable than other small notes.
   Adjust the value below to change the consent text size. */
.rps-consent {
  font-size: 0.95rem;
  /* increase consent text for readability */
}

.rps-consent * {
  font-size: inherit;
}

/* Required star positioning inside consent - needs to override the wildcard selector above */
.rps-consent .rps-required-star {
  display: inline-block !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-left: 2px;
  vertical-align: baseline !important;
}

.rps-consent-text {
  flex: 1 !important;
  display: inline !important;
}

/* Error and helper messages slightly smaller and readable */
.rps-card-errors,
.rps-consent-error {
  font-size: 0.8125rem;
  line-height: 1.2;
}

/* Keep very small UI bits (like small tags inside summary) readable but compact */
.rps-deposit-note small,
.rps-deposit-warning small {
  font-size: 0.8125rem;
}

/* Additional mobile tweaks to prevent overflow of buttons and helper text */
@media (max-width: 640px) {

  /* allow buttons to shrink on very small screens */
  #rps-fixed-back,
  #rps-fixed-primary {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .rps-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* helper text should wrap instead of forcing horizontal scroll */
  .rps-fixed-help {
    white-space: normal;
    padding-left: 12px;
    padding-right: 12px;
    word-break: break-word;
  }
}

/* PayPal button container tweaks so the PayPal smart button sits well with the form
   and matches the form width/radius. The SDK renders its own markup; these rules
   are intentionally conservative but help the button align visually. */
#rps-paypal-button-container {
  width: 100%;
  max-width: none;
}

#rps-paypal-button-container>* {
  width: 100% !important;
}

/* Keep Google/Apple Pay button width consistent with tabs/PayPal */
#rps-payment-request-button {
  width: 100% !important;
}

/* Divider under coupon */
.rps-divider {
  border: none;
  border-top: 1px solid rgba(224, 231, 240, 0.18);
  margin: 2rem 0 2rem 0;
}

/* Loading Overlay - Optimized for performance and security */
.rps-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 35, 47, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-in;
  /* Security: Prevent interaction with underlying content */
  pointer-events: all;
  /* Performance: Use hardware acceleration */
  transform: translateZ(0);
  will-change: opacity;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.rps-loading-content {
  text-align: center;
  padding: 40px;
  background: rgba(41, 56, 71, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(58, 160, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 90%;
}

/* Loader container to hold both spinner and checkmark */
.rps-loader-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

/* Performance: Optimize spinner animation with GPU acceleration */
.rps-spinner {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(58, 160, 255, 0.2);
  border-top-color: #3aa0ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  will-change: transform;
  transition: opacity 0.3s ease;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Success checkmark animation */
.rps-success-checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rps-success-checkmark.active {
  opacity: 1;
}

.rps-checkmark-svg {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: block;
  animation: scaleIn 0.3s ease-in-out forwards;
}

.rps-checkmark-circle {
  opacity: 0;
  animation: fadeInCircle 0.3s ease-in-out forwards;
}

.rps-checkmark-check {
  stroke-dasharray: 85;
  stroke-dashoffset: 85;
  animation: drawCheck 0.5s ease-in-out 0.2s forwards;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInCircle {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes drawCheck {
  0% {
    stroke-dashoffset: 85;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

.rps-loading-text {
  color: #e0e7f0;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  transition: color 0.3s ease;
}

.rps-loading-text.success {
  color: #4caf50;
}

.rps-loading-subtext {
  color: rgba(224, 231, 240, 0.7);
  font-size: 0.9rem;
  display: block;
  transition: color 0.3s ease;
}

.rps-loading-subtext.success {
  color: rgba(76, 175, 80, 0.8);
}

/* Flatpickr theme overrides to match the form */
.flatpickr-calendar {
  background: #18232f;
  /* requested calendar background */
  border: 1px solid var(--rps-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-family: inherit;
  color: #ffffff;
  /* day numbers default */
  font-size: 1rem;
}

.flatpickr-innerContainer,
.flatpickr-days,
.flatpickr-days .dayContainer {
  background: #18232f !important;
  /* ensure grid background is dark */
}

.flatpickr-months,
.flatpickr-weekdays {
  background: #1f8aff;
  /* header/banner */
  color: #ffffff;
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekday {
  color: #ffffff !important;
}

.flatpickr-current-month .numInputWrapper input,
.flatpickr-current-month .flatpickr-monthDropdown-months {
  color: #ffffff;
}

.flatpickr-day {
  color: #ffffff !important;
  /* numbers white */
  border-radius: 6px;
  width: var(--rps-dp-day-size);
  height: var(--rps-dp-day-size);
  line-height: var(--rps-dp-day-size);
  font-size: var(--rps-dp-font-size);
}

.flatpickr-day:hover {
  background: rgba(58, 160, 255, 0.15);
  border-color: var(--rps-primary);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #1f8aff;
  /* match banner */
  border-color: #1f8aff;
  color: #fff;
}

.flatpickr-day.today {
  border-color: #1f8aff;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.nextMonthDay,
.flatpickr-day.prevMonthDay {
  color: rgba(255, 255, 255, 0.35) !important;
  background: transparent !important;
}

/* Optional: slightly larger cells on wider screens */
@media (min-width: 1024px) {
  :root {
    --rps-dp-day-size: 48px;
  }
}

.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-calendar select.flatpickr-monthDropdown-months,
.flatpickr-calendar .numInputWrapper input {
  color: #ffffff;
}

/* Month dropdown background and text colors */
.flatpickr-calendar select.flatpickr-monthDropdown-months {
  background: #18232f !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.flatpickr-calendar select.flatpickr-monthDropdown-months option {
  background: #18232f !important;
  color: #ffffff !important;
}

/* Year input next to month dropdown */
.flatpickr-calendar .numInputWrapper input {
  background: #18232f !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* File Upload Sections for Mix Types */
.rps-file-upload-sections {
  margin-top: 20px;
}

.rps-file-section {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid var(--rps-border);
  border-radius: 8px;
  background: rgba(41, 56, 71, 0.3);
}

.rps-file-section-title {
  color: var(--rps-label);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rps-border);
}

.rps-file-section .rps-field {
  margin-bottom: 0;
}

.rps-file-section .rps-file-note {
  margin-top: 8px;
  font-size: 0.875rem;
  color: rgba(224, 231, 240, 0.7);
}

/* Sub-total column right alignment */
.rps-summary-col-subtotal {
  text-align: right;
}

.rps-item-subtotal {
  text-align: right;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.rps-item-subtotal .rps-item-value {
  text-align: right;
}

/* Receipt/Summary as Step 3 */
.rps-receipt-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease-in;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Receipt Header */
.rps-receipt-header {
  text-align: center;
  padding: 40px 30px 30px;
  background: transparent;
  border-bottom: 2px solid rgba(58, 160, 255, 0.2);
  border-radius: 0;
  overflow: visible;
  position: relative;
}

.rps-receipt-checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  width: 100px;
  height: 100px;
  animation: scaleIn 0.5s ease-out;
}

.rps-receipt-checkmark-svg {
  width: 100px;
  height: 100px;
  display: block;
}

.rps-receipt-checkmark-circle {
  animation: fadeIn 0.3s ease-in-out forwards;
}

.rps-receipt-checkmark-check {
  stroke-dasharray: 85;
  stroke-dashoffset: 85;
  animation: drawCheck 0.5s ease-in-out 0.3s forwards;
}

.rps-receipt-title {
  color: #4caf50;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.rps-receipt-subtitle {
  color: rgba(224, 231, 240, 0.8);
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Receipt Body */
.rps-receipt-body {
  padding: 30px;
  background: transparent;
  overflow: hidden;
}

.rps-receipt-section-title {
  color: #3aa0ff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(58, 160, 255, 0.3);
}

.rps-receipt-section {
  margin-bottom: 15px;
}

.rps-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(224, 231, 240, 0.1);
}

.rps-receipt-row:last-child {
  border-bottom: none;
}

.rps-receipt-label {
  color: rgba(224, 231, 240, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
}

.rps-receipt-value {
  color: #e0e7f0;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
}

.rps-receipt-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(58, 160, 255, 0.3) 50%, transparent 100%);
  margin: 20px 0;
}

/* Pricing Section with emphasis */
.rps-receipt-pricing .rps-receipt-row {
  padding: 10px 0;
}

.rps-receipt-total-row {
  margin-top: 10px;
  padding-top: 15px !important;
  border-top: 2px solid rgba(58, 160, 255, 0.3) !important;
  border-bottom: none !important;
}

.rps-receipt-total-label {
  color: #3aa0ff !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
}

.rps-receipt-total-value {
  color: #3aa0ff !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
}

.rps-receipt-paid {
  color: #4caf50 !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
}

.rps-receipt-discount-label {
  color: #4caf50 !important;
}

.rps-receipt-discount-value {
  color: #4caf50 !important;
}

/* Receipt Order Summary Table */
.rps-receipt-subsection-title {
  color: rgba(224, 231, 240, 0.9);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 15px 0;
}

.rps-receipt-order-summary {
  background: var(--rps-input-bg);
  border: 1px solid var(--rps-border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
}

.rps-receipt-order-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 12px;
  background: rgba(58, 160, 255, 0.1);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--rps-input-text);
  border-bottom: 1px solid var(--rps-border);
  font-size: 0.9rem;
}

.rps-receipt-col-quantity {
  text-align: center;
}

.rps-receipt-col-description {
  text-align: left;
}

.rps-receipt-col-rate {
  text-align: right;
}

.rps-receipt-col-subtotal {
  text-align: right;
}

.rps-receipt-order-items {
  display: flex;
  flex-direction: column;
}

.rps-receipt-order-item {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(224, 231, 240, 0.1);
  align-items: center;
  transition: background 0.2s ease;
}

.rps-receipt-order-item:hover {
  background: rgba(58, 160, 255, 0.05);
}

.rps-receipt-order-item:last-child {
  border-bottom: none;
}

.rps-receipt-item-quantity {
  text-align: center;
  color: #e0e7f0;
  font-size: 0.95rem;
  font-weight: 600;
}

.rps-receipt-item-description {
  text-align: left;
  color: #e0e7f0;
  font-weight: 600;
  font-size: 0.95rem;
}

.rps-receipt-item-rate {
  text-align: right;
  color: rgba(224, 231, 240, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.rps-receipt-item-subtotal {
  text-align: right;
  color: #3aa0ff;
  font-weight: 600;
  font-size: 1rem;
}

/* Responsive for receipt order table */
@media (max-width: 768px) {
  .rps-receipt-order-header {
    display: none;
  }

  .rps-receipt-order-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .rps-receipt-item-quantity,
  .rps-receipt-item-description,
  .rps-receipt-item-rate,
  .rps-receipt-item-subtotal {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .rps-receipt-item-description {
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(224, 231, 240, 0.1);
  }

  .rps-receipt-item-quantity::before {
    content: 'Quantity: ';
    color: rgba(224, 231, 240, 0.6);
    font-weight: 400;
  }

  .rps-receipt-item-rate::before {
    content: 'Rate: ';
    color: rgba(224, 231, 240, 0.6);
    font-weight: 400;
  }

  .rps-receipt-item-subtotal::before {
    content: 'Subtotal: ';
    color: rgba(224, 231, 240, 0.6);
    font-weight: 400;
  }
}

/* Receipt Footer */
.rps-receipt-footer {
  padding: 40px 30px;
  background: transparent;
  border-top: 2px solid rgba(58, 160, 255, 0.2);
  border-radius: 0;
  text-align: center;
}

.rps-receipt-footer-text {
  color: rgba(224, 231, 240, 0.9);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.rps-receipt-footer-text strong {
  color: #3aa0ff;
  font-weight: 600;
}

.rps-receipt-finish-btn {
  margin-top: 20px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #3aa0ff 0%, #2d8ae0 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(58, 160, 255, 0.3);
}

.rps-receipt-finish-btn:hover {
  background: linear-gradient(135deg, #2d8ae0 0%, #1f6fc4 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(58, 160, 255, 0.4);
}

.rps-receipt-finish-btn:active {
  transform: translateY(0);
}

.rps-receipt-finish-btn svg {
  width: 16px;
  height: 16px;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Mobile responsive receipt */
@media (max-width: 768px) {
  .rps-receipt-header {
    padding: 30px 20px 20px;
  }

  .rps-receipt-body {
    padding: 20px;
  }

  .rps-receipt-title {
    font-size: 1.5rem;
  }

  .rps-receipt-footer {
    padding: 30px 20px;
  }
}