@scope (.party-document-download) {
  :scope.page-wrapper {
    font-family: Aptos, Segoe UI, Helvetica Neue, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  a {
    color: #0077c8;
  }
  body {
    font-family: Aptos, Segoe UI, Helvetica Neue, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f7;
    color: #222;
  }
  h1 {
    margin: 0 0 12px 0;
  }
  p {
    margin: 8px 0;
    line-height: 1.5;
  }

  .card {
    background: #ffffff;
    max-width: 520px;
    width: 100%;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .download-button {
    display: inline-block;
    margin: 16px 0 8px 0;
    padding: 12px 24px;
    border-radius: 999px;
    background-color: #0077c8;
    color: #ffffff;
    transition: transform 0.05s ease, box-shadow 0.1s ease;
    box-shadow: 0 4px 10px rgba(0, 119, 200, 0.3);
  }
  .download-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 119, 200, 0.35);
  }
  .files-list {
    margin: 16px 0;
    padding-left: 18px;
  }
  .logo {
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 16px;
  }
  .meta {
    font-size: 0.9em;
    color: #555;
  }
  .status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f5e9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
  }
  .status-icon span {
    font-size: 24px;
    color: #2e7d32;
  }

  .loader {
    width: 80px;
    height: 80px;
    display: inline-block;
    position: relative;
    justify-self: center;
    margin: auto;
  }
  .loader::after,
  .loader::before {
    content: "";
    box-sizing: border-box;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #0077c8;
    position: absolute;
    left: 0;
    top: 0;
    animation: animloader 2s linear infinite;
  }
  .loader::after {
    animation-delay: 1s;
  }

  @keyframes animloader {
    0% {
      transform: scale(0);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 0;
    }
  }
}

@scope ( .party-document-download .success) {
  :scope.success {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #2e7d32;
  }

  h1 {
    color: #2e7d32;
  }
}

@scope ( .party-document-download .error) {
  :scope.card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #b3261e;
  }
  h1 {
    color: #b3261e;
  }
  .status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffebee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
  }
  .status-icon span {
    font-size: 24px;
    color: #b3261e;
  }
  .support {
    font-size: 0.9em;
    color: #555;
    margin-top: 16px;
  }
}
