  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      line-height: 1.6;
      color: #333;
      background-color: #fafafa;
  }

  /* Header */
  header {
      background-color: white;
      padding: 1.5rem;
      border-bottom: 1px solid #e5e5e5;
      position: sticky;
      top: 0;
      z-index: 100;
  }

  .logo {
      font-size: 1.8rem;
      font-weight: bold;
      text-align: center;
      color: #000;
      letter-spacing: 2px;
  }

  /* Main Container */
  .checkout-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1rem;
      display: grid;
      grid-template-columns: 1fr 400px;
      gap: 3rem;
  }

  @media (max-width: 968px) {
      .checkout-container {
          grid-template-columns: 1fr;
          gap: 2rem;
      }
  }

  /* Left Column - Form */
  .checkout-form {
      background: white;
      padding: 2rem;
      border-radius: 8px;
      border: 1px solid #e5e5e5;
  }

  .form-section {
      margin-bottom: 2.5rem;
  }

  .form-section:last-child {
      margin-bottom: 0;
  }

  .section-title {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      color: #000;
  }

  .form-group {
      margin-bottom: 1.25rem;
  }

  .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      font-size: 0.95rem;
      color: #333;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
      width: 100%;
      padding: 0.875rem;
      border: 1px solid #d1d1d1;
      border-radius: 6px;
      font-size: 1rem;
      font-family: inherit;
      transition: border-color 0.2s;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
      outline: none;
      border-color: #0066CC;
      box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  }

  .form-group textarea {
      resize: vertical;
      min-height: 80px;
  }

  .char-count {
      font-size: 0.85rem;
      color: #666;
      text-align: right;
      margin-top: 0.25rem;
  }

  /* Amount Selection */
  .amount-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0.75rem;
      margin-bottom: 1rem;
  }

  @media (max-width: 600px) {
      .amount-grid {
          grid-template-columns: repeat(2, 1fr);
      }
  }

  .amount-option {
      border: 2px solid #d1d1d1;
      border-radius: 6px;
      padding: 1rem 0.5rem;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 600;
      font-size: 1.1rem;
  }

  .amount-option:hover {
      border-color: #0066CC;
  }

  .amount-option.selected {
      border-color: #0066CC;
      background-color: #f0f7ff;
      color: #0066CC;
  }

  .custom-amount-wrapper {
      position: relative;
      margin-top: 1rem;
      display: flex;
      align-items: center;
  }

  .custom-amount-wrapper input {
      padding-right: 2.5rem !important;
  }

  .custom-amount-wrapper::after {
      content: '€';
      position: absolute;
      right: 1rem;
      font-weight: 600;
      color: #666;
      font-size: 1.2rem;
      pointer-events: none;
  }

  /* Hide Number Input Spinners */
  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      appearance: none;
      margin: 0;
  }

  input[type=number] {
      -moz-appearance: textfield;
      appearance: textfield;
  }

  /* Background Selection */
  .background-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
  }

  .background-option {
      border: 2px solid #d1d1d1;
      border-radius: 6px;
      padding: 0.5rem;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
  }

  .background-option:hover {
      border-color: #0066CC;
  }

  .background-option.selected {
      border-color: #0066CC;
      background-color: #f0f7ff;
  }

  .background-preview {
      width: 100%;
      height: 100px;
      border-radius: 4px;
      margin-bottom: 0px;
  }

  .bg-fitness {
      background-image: url("/images/tausta-3.jpg");
      background-size: cover;
      background-position: center;

  }

  .bg-wellness {
      background-image: url("/images/tausta-4.jpg");
      background-size: cover;
      background-position: center;

  }

  .bg-christmas {
      background-image: url("/images/tausta-2.jpg");
      background-size: cover;
      background-position: center;
  }

  .bg-celebration {
      background-image: url("/images/tausta-1.jpg");
      background-size: cover;
      background-position: center;

  }



  /* Payment Method */
  .payment-option {
      border: 2px solid #d1d1d1;
      border-radius: 6px;
      padding: 1.25rem;
      margin-bottom: 1rem;
      cursor: pointer;
      transition: all 0.2s;
  }

  .payment-option:hover {
      border-color: #0066CC;
  }

  .payment-option.selected {
      border-color: #0066CC;
      background-color: #f0f7ff;
  }

  .payment-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
  }

  .payment-radio {
      width: 20px;
      height: 20px;
      border: 2px solid #d1d1d1;
      border-radius: 50%;
      position: relative;
      flex-shrink: 0;
  }

  .payment-option.selected .payment-radio {
      border-color: #0066CC;
  }

  .payment-option.selected .payment-radio::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 10px;
      height: 10px;
      background-color: #0066CC;
      border-radius: 50%;
  }

  .payment-label {
      font-weight: 600;
      font-size: 1rem;
  }

  .payment-details {
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid #e5e5e5;
      display: none;
  }

  .payment-option.selected .payment-details {
      display: block;
  }

  .payment-info {
      font-size: 0.9rem;
      color: #666;
      margin-top: 0.5rem;
  }

  /* Right Column - Summary */
  .order-summary {
      background: white;
      padding: 2rem;
      border-radius: 8px;
      border: 1px solid #e5e5e5;
      height: fit-content;
      position: sticky;
      top: 100px;
  }

  .summary-title {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      color: #000;
  }

  .gift-card-preview {
      width: 100%;
      height: 180px;
      border-radius: 8px;
      margin-bottom: 1.5rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 1.5rem;
      color: white;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.5);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .preview-amount {
      font-size: 2.5rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
  }

  .preview-message {
      font-size: 0.95rem;
      opacity: 0.95;
      margin-top: 0.5rem;
      font-style: italic;
  }

  .summary-row {
      display: flex;
      justify-content: space-between;
      padding: 0.75rem 0;
      border-bottom: 1px solid #e5e5e5;
  }

  .summary-row:last-child {
      border-bottom: none;
      font-weight: 600;
      font-size: 1.2rem;
      padding-top: 1rem;
      margin-top: 0.5rem;
      border-top: 2px solid #e5e5e5;
  }

  .summary-label {
      color: #666;
  }

  .summary-value {
      font-weight: 600;
      color: #000;
  }

  /* Button */
  .btn-primary {
      width: 100%;
      padding: 1.125rem;
      background-color: #0066CC;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.2s;
      margin-top: 1.5rem;
  }

  .btn-primary:hover {
      background-color: #0052a3;
  }

  .btn-primary:disabled {
      background-color: #cccccc;
      cursor: not-allowed;
      opacity: 0.7;
  }

  .btn-primary:disabled:hover {
      background-color: #cccccc;
  }

  /* Loading State */
  .btn-primary.btn-loading {
      position: relative;
      color: transparent !important;
      pointer-events: none;
      cursor: wait;
  }

  .btn-primary.btn-loading::after {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      top: 50%;
      left: 50%;
      margin: -10px 0 0 -10px;
      border: 3px solid rgba(255, 255, 255, 0.3);
      border-top-color: #ffffff;
      border-radius: 50%;
      animation: btn-spinner 0.6s linear infinite;
  }

  @keyframes btn-spinner {
      to {
          transform: rotate(360deg);
      }
  }

  .btn-secondary {
      width: 100%;
      padding: 1rem;
      background-color: #f5f5f5;
      color: #333;
      border: 1px solid #d1d1d1;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      margin-top: 0.75rem;
      text-decoration: none;
      display: block;
      text-align: center;
  }

  .btn-secondary:hover {
      background-color: #e5e5e5;
  }

  .secure-note {
      text-align: center;
      font-size: 0.85rem;
      color: #666;
      margin-top: 1rem;
  }

  footer {
      background-color: white;
      padding: 2rem 1rem;
      text-align: center;
      color: #666;
      font-size: 0.9rem;
      border-top: 1px solid #e5e5e5;
      margin-top: 3rem;
  }

  /* Terms Checkbox Styles */
  .terms-agreement {
      background-color: #f9f9f9;
      padding: 1rem;
      border-radius: 6px;
      border: 1px solid #e5e5e5;
  }

  .terms-agreement label {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem !important;
      cursor: pointer;
      font-size: 0.95rem !important;
      color: #333;
      user-select: none;
  }

  .terms-agreement input[type="checkbox"] {
      width: 1.2rem;
      height: 1.2rem;
      margin-top: 0.1rem !important;
      accent-color: #0066CC;
      cursor: pointer;
  }

  /* Modal Styles */
  .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
  }

  .modal-overlay.hidden {
      display: none;
  }

  .modal-container {
      background-color: white;
      width: 90%;
      max-width: 800px;
      max-height: 90vh;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .modal-header {
      padding: 1.5rem;
      border-bottom: 1px solid #e5e5e5;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .modal-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: #000;
      margin: 0;
  }

  .modal-close {
      background: none;
      border: none;
      font-size: 2rem;
      color: #666;
      cursor: pointer;
      line-height: 1;
      padding: 0;
  }

  .modal-close:hover {
      color: #000;
  }

  .modal-body {
      padding: 1.5rem;
      overflow-y: auto;
      line-height: 1.7;
      font-size: 0.95rem;
  }

  .modal-body h3 {
      font-size: 1.2rem;
      font-weight: 600;
      margin: 1.5rem 0 1rem;
      color: #000;
  }

  .modal-body h4 {
      font-size: 1.1rem;
      font-weight: 600;
      margin: 1.25rem 0 0.75rem;
      color: #333;
  }

  .modal-body p {
      margin-bottom: 1rem;
  }

  .modal-body ul {
      margin-bottom: 1rem;
      padding-left: 1.5rem;
  }

  .modal-body li {
      margin-bottom: 0.5rem;
  }

  /* Bonus Banner */
  .bonus-banner {
      background-color: #ff9800;
      /* Orange */
      color: white;
      padding: 1rem;
      border-radius: 8px;
      text-align: center;
      font-weight: bold;
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Calculation Box */
  .calculation-box {
      background-color: #e0f7fa;
      /* Light Pastel Blue */
      border: 1px solid #b2ebf2;
      border-radius: 8px;
      padding: 1.5rem;
      margin-top: 1.5rem;
  }

  .calculation-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.5rem;
      font-size: 1.1rem;
  }

  .calculation-row.bonus {
      color: #00897b;
      /* Teal/Greenish for bonus */
      font-weight: bold;
  }

  .calculation-row.total {
      margin-top: 0.5rem;
      padding-top: 0.5rem;
      border-top: 1px solid #b2ebf2;
      font-weight: bold;
      font-size: 1.2rem;
  }

  /* Flash Message Styles */
  .flash-container {
      position: fixed;
      top: 2rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
      min-width: 300px;
      max-width: 512px;
      width: 100%;
      padding: 0 1rem;
  }

  .flash-message {
      display: flex;
      align-items: center;
      gap: 1rem;
      background-color: rgba(255, 255, 255, 0.9);
      border: 1px solid #e5e5e5;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
      border-radius: 1rem;
      padding: 1rem;
      cursor: pointer;
      transition: box-shadow 0.3s;
      backdrop-filter: blur(10px);
  }

  .flash-message:hover {
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }

  .flash-icon {
      flex-shrink: 0;
      width: 2.5rem;
      height: 2.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 9999px;
  }

  .flash-icon.success {
      background-color: #ecfdf5;
      color: #10b981;
  }

  .flash-icon.error {
      background-color: #fef2f2;
      color: #ef4444;
  }

  .flash-icon svg {
      width: 1.5rem;
      height: 1.5rem;
  }

  .flash-content {
      flex: 1;
  }

  .flash-text {
      font-size: 0.95rem;
      font-weight: 500;
      color: #1f2937;
      margin: 0;
  }

  .flash-close {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2rem;
      height: 2rem;
      border-radius: 9999px;
      color: #9ca3af;
      background: transparent;
      border: none;
      cursor: pointer;
      transition: all 0.2s;
  }

  .flash-close:hover {
      color: #4b5563;
      background-color: #f3f4f6;
  }

  .flash-close svg {
      width: 1.25rem;
      height: 1.25rem;
  }