/* ==========================================================================
   Template: website_v3/templates/website_v3/includes/birthday_donate_modal.html
   URL:      pages that include the birthday donate popup
   Moved from the inline <style> block of this template on 2026-11-19.
   ========================================================================== */

  body.donate-open {
    position: fixed;
    top: var(--scroll-lock-y, 0);
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden !important;
  }

  .donate-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
  }
  .donate-modal-overlay.active { display: flex; }

  .donate-modal-box {
    background: #fff;
    width: 100%;
    max-width: 860px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.28);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    height: 90vh;
  }

  .donate-modal-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
  }
  .donate-modal-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .modal-package-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: #fdf0e6;
    color: #e07b39;
    border: 1px solid #f0c9a8;
  }

  .donate-close-btn {
    border-radius: 4px;
    border: none;
    background: #f16f6f6b;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    padding: 0 6px;
  }
  .donate-close-btn:hover { color: #ff0000d3; }

  .donate-modal-body {
    flex: 1 1 0;
    min-height: 0;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    touch-action: pan-y;
    padding: 22px;
  }
  .donate-modal-body::-webkit-scrollbar       { width: 5px; }
  .donate-modal-body::-webkit-scrollbar-track { background: #f5f5f5; }
  .donate-modal-body::-webkit-scrollbar-thumb { background: #e0c4b0; border-radius: 4px; }
  .donate-modal-body::-webkit-scrollbar-thumb:hover { background: #e07b39; }

  .donate-modal-footer {
    flex-shrink: 0;
    padding: 14px 22px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fafafa;
  }

  .modal-package-strip {
    background: linear-gradient(135deg, #fdf5ee 0%, #fff8f3 100%);
    border: 1px solid #f0c9a8;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .modal-package-strip .pkg-icon   { font-size: 26px; line-height: 1; }
  .modal-package-strip .pkg-details strong { display: block; font-size: 14px; font-weight: 600; color: #333; }
  .modal-package-strip .pkg-details span  { font-size: 13px; color: #888; }
  .modal-package-strip .pkg-amount { margin-left: auto; font-size: 18px; font-weight: 700; color: #e07b39; }

  .donate-modal-body .form-label {
    font-size: 13px; font-weight: 500; color: #444; margin-bottom: 4px;
  }
  .donate-modal-body .form-control {
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    box-shadow: none;
    padding: 9px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .donate-modal-body .form-control::placeholder { color: #bbb; font-size: 13px; }
  .donate-modal-body .form-control:focus {
    border-color: #e07b39;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(224,123,57,0.12);
    outline: none;
  }

  .section-divider { border-top: 1px solid #eee; margin: 18px 0 14px; }

  .pan-section {
    background: #fdf5ee;
    border-radius: 8px;
    padding: 16px 18px;
  }
  .pan-section p { font-size: 13px; color: #666; margin-bottom: 10px; }

  .btn-donate {
    background: #296e0ed6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    width: 100%;
    text-align: center;
  }
  .btn-donate:hover  { background: #c96828; color: #fff; transform: translateY(-1px); }
  .btn-donate:active { transform: translateY(0); }

  @media (max-width: 576px) {
    .donate-modal-box    { max-height: 95vh; height: 95vh; border-radius: 10px; }
    .donate-modal-body   { padding: 16px; }
    .donate-modal-header { padding: 12px 16px; }
    .donate-modal-footer { padding: 12px 16px; flex-direction: column; }
    .donate-modal-footer .btn,
    .donate-modal-footer .btn-donate { width: 100%; }
    .modal-package-strip { flex-wrap: wrap; }
    .modal-package-strip .pkg-amount { margin-left: 0; }
  }
