// Base styles (platform theme)
.cart-container.platform {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 200px);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cart-container.platform .cart-header {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  h1 {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-4xl, 2rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary);
    margin: 0;
  }

  .clear-cart-btn {
    padding: 10px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 13px);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-base, 0.875rem);
    font-weight: var(--font-weight-semibold, 600);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;

    svg {
      display: block;
      width: 16px;
      height: 16px;
    }

    &:hover {
      background: color-mix(in srgb, var(--error-color) 8%, transparent);
      border-color: var(--error-color);
      color: var(--error-color);
      transform: translateY(-1px);
    }

    &:active {
      transform: translateY(0);
    }

    &:focus-visible {
      outline: 2px solid var(--primary-color);
      outline-offset: 2px;
    }
  }
}

.empty-cart {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.cart-item-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md, 12px);
  transition: transform 0.3s ease;

  &.swiped {
    .cart-item {
      transform: translateX(-80px);
    }

    .delete-btn-mobile {
      opacity: 1;
      pointer-events: all;
    }
  }
}

// platform cart item
.cart-container.platform .cart-item {
  display: flex;
  gap: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 13px);
  padding: 20px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);

  &:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }

  .item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg, 13px);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: var(--bg-primary);
      display: block;
      padding: 6px;
      transition: transform var(--transition-normal);
    }

    &:hover img {
      transform: scale(1.05);
    }
  }

  .item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }

  .item-name {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-lg, 1rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;

    &:hover {
      color: var(--primary-color);
    }
  }

  .remove-btn {
    flex-shrink: 0;
    padding: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm, 8px);
    transition: background-color var(--transition-normal), color var(--transition-normal);

    &:hover {
      background: color-mix(in srgb, var(--error-color) 8%, transparent);
      color: var(--error-color);
    }

    &:focus-visible {
      outline: 2px solid var(--primary-color);
      outline-offset: 2px;
    }
  }

  .item-description {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-base, 0.875rem);
    color: var(--text-secondary);
    line-height: 1.5;
  }

  .cart-item-variants {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;

    .cart-variant {
      font-size: var(--font-size-sm, 0.8125rem);
      color: var(--primary-color);
      background: rgba(73, 118, 113, 0.08);
      padding: 3px 10px;
      border-radius: 6px;
      font-weight: var(--font-weight-medium, 500);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .cart-colour-swatch {
      display: inline-block;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 1px solid rgba(0, 0, 0, 0.15);
      vertical-align: middle;
    }
  }

  .item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
  }
}

// Pricing & Quantity - shared
.item-pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;

  .price-with-discount {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .original-price {
    font-size: var(--font-size-sm, 0.8125rem);
    color: var(--text-secondary);
    text-decoration: line-through;
  }

  .current-price {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-xl, 1.125rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--primary-color);
  }

  .delivery-price {
    font-size: var(--font-size-sm, 0.8125rem);
    font-weight: var(--font-weight-medium, 500);
    color: var(--text-secondary);
  }
}

// platform quantity controls
.cart-container.platform .quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg, 13px);
  padding: 4px 10px;
  border: 1px solid var(--border-color);

  .qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;

    &:hover:not(:disabled) {
      background: var(--primary-color);
      color: white;
    }

    &:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }

    &:focus-visible {
      outline: 2px solid var(--primary-color);
      outline-offset: 2px;
    }
  }

  .qty-value {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-lg, 1rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary);
    min-width: 24px;
    text-align: center;
  }
}

.delete-btn-mobile {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: var(--error-color);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0;

  &:active {
    background: color-mix(in srgb, var(--error-color) 85%, black);
  }

  &:focus-visible {
    opacity: 1;
    pointer-events: all;
    outline: 2px solid white;
    outline-offset: -4px;
  }
}

// platform Cart Summary
.cart-container.platform .cart-summary {
  position: sticky;
  top: 90px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 13px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.15);

  .summary-header h3 {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-3xl, 1.5rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary);
    margin: 0 0 16px 0;
  }

  .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-md, 0.9375rem);
    color: var(--text-secondary);

    &.delivery {
      display: flex;
    }

    &.total {
      padding-top: 16px;
      border-top: 1px solid var(--border-color);
      font-size: var(--font-size-xl, 1.125rem);
      font-weight: var(--font-weight-bold, 700);
      color: var(--text-primary);
      margin-top: 8px;

      .total-price {
        font-size: var(--font-size-3xl, 1.5rem);
        color: var(--primary-color);
      }
    }
  }

  .payment-method-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
  }

  .checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg, 13px);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-lg, 1rem);
    font-weight: var(--font-weight-bold, 700);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.15);

    &:hover:not(:disabled) {
      background: var(--primary-hover);
      transform: translateY(-2px);
      box-shadow: var(--shadow-lg);
    }

    &:active:not(:disabled) {
      transform: translateY(0);
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    &:focus-visible {
      outline: 2px solid var(--primary-color);
      outline-offset: 2px;
    }
  }

  .cart-login-gate {
    margin-top: 16px;
    padding: 20px;
    border-radius: 14px;
    background: rgba(42, 171, 238, 0.05);
    border: 1px dashed rgba(42, 171, 238, 0.3);
    text-align: center;

    .login-gate-icon {
      margin: 0 auto 10px;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: rgba(42, 171, 238, 0.1);
      color: #2AABEE;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .login-gate-title {
      margin: 0 0 4px;
      font-size: var(--font-size-lg, 1rem);
      font-weight: var(--font-weight-bold, 700);
      color: var(--text-primary);
    }

    .login-gate-desc {
      margin: 0 0 16px;
      font-size: var(--font-size-sm, 0.8125rem);
      color: var(--text-secondary);
      line-height: 1.4;
    }

    // Telegram brand blue is intentional here (matches the Telegram logo/CTA convention),
    // not a design-token drift.
    .telegram-login-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      border: none;
      border-radius: var(--radius-sm, 10px);
      background: #2AABEE;
      color: #fff;
      font-size: var(--font-size-md, 0.9375rem);
      font-weight: var(--font-weight-semibold, 600);
      cursor: pointer;
      transition: background-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);

      &:hover {
        background: #229ED9;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(42, 171, 238, 0.3);
      }

      &:active {
        transform: translateY(0);
      }

      &:focus-visible {
        outline: 2px solid #2AABEE;
        outline-offset: 2px;
      }
    }
  }

  // Intentionally dark/near-black, distinct from --primary-color, to visually separate
  // the card-payment CTA from the QR-payment CTA (not a token-drift oversight).
  .card-payment-btn {
    background: #1f2937;

    &:hover:not(:disabled) {
      background: #111827;
      box-shadow: 0 6px 16px rgba(31, 41, 55, 0.28);
    }

    &:focus-visible {
      outline: 2px solid #1f2937;
      outline-offset: 2px;
    }
  }
}

// Terms agreement - shared base
.terms-agreement {
  margin-top: 12px;

  .checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding-left: 28px;

    input[type="checkbox"] {
      position: absolute;
      opacity: 0;
      cursor: pointer;
      height: 0;
      width: 0;
    }

    .checkmark {
      position: absolute;
      left: 0;
      top: 2px;
      height: 18px;
      width: 18px;
      background: var(--bg-primary);
      border: 2px solid var(--border-color);
      border-radius: var(--radius-xs, 4px);
      transition: background-color var(--transition-normal), border-color var(--transition-normal);

      &::after {
        content: "";
        position: absolute;
        display: none;
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
      }
    }

    .terms-text {
      font-size: var(--font-size-sm, 0.8125rem);
      color: var(--text-secondary);
      line-height: 1.4;

      a {
        color: var(--primary-color);
        text-decoration: none;

        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
}

.delivery-warning {
  margin: -4px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 10px);
  font-size: var(--font-size-sm, 0.8125rem);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;

  app-icon {
    flex-shrink: 0;
    margin-top: 1px;
  }
}

.cart-container.platform .cart-summary .delivery-warning {
  color: color-mix(in srgb, var(--warning-color) 65%, black);
  background: color-mix(in srgb, var(--warning-color) 12%, white);
  border: 1px solid color-mix(in srgb, var(--warning-color) 35%, white);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

// platform checkbox colors
.cart-container.platform .terms-agreement .checkbox-container {
  input[type="checkbox"]:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);

    &::after {
      display: block;
    }
  }

  .checkmark {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xs, 4px);
  }

  .terms-text {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-sm, 0.8125rem);
    color: var(--text-secondary);
    line-height: 1.5;

    a {
      color: var(--primary-color);
      text-decoration: none;
      font-weight: var(--font-weight-semibold, 600);

      &:hover {
        text-decoration: underline;
        color: var(--primary-hover);
      }
    }
  }
}

// Payment / bank-payment modals render through the shared app-dialog
// primitive (focus-trap, Escape, backdrop-click, ARIA all owned there —
// see closeOnEscape/closeOnBackdropClick usage in the template). These
// ::ng-deep overrides restore the exact panel geometry the old hand-rolled
// modals had, which app-dialog's generic size presets/padding don't match.
:host ::ng-deep {
  app-dialog.payment-dialog .app-dialog-panel {
    max-width: 500px;
    border: 1px solid var(--border-color);
  }

  app-dialog.payment-dialog .app-dialog-panel__body {
    padding: 40px;
  }
}

// Deduplicated: this rule previously appeared twice (identical) - kept a single definition.
.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-normal), color var(--transition-normal), transform var(--transition-normal);
  color: var(--text-secondary);
  z-index: 10;

  &:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: scale(1.1);
  }

  &:active {
    transform: scale(0.95);
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  svg {
    width: 20px;
    height: 20px;
  }
}

.payment-status-screen {
  text-align: center;

  h2 {
    font-size: var(--font-size-3xl, 1.5rem);
    margin: 20px 0 10px;
    color: var(--text-primary);
  }

  p {
    color: var(--text-secondary);
    margin: 0;
  }

  &.success {
    .success-icon {
      width: 80px;
      height: 80px;
      background: var(--success-color);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
      color: white;
      margin: 0 auto 20px;
    }

    .contact-capture-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 16px;
      text-align: left;

      label {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      input {
        padding: 10px 12px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md, 8px);
        font-size: var(--font-size-sm, 0.875rem);
        color: var(--text-primary);
        background: var(--surface-color, #fff);

        &[aria-invalid='true'] {
          border-color: var(--error-color);
        }

        &:disabled {
          opacity: 0.6;
        }
      }

      .field-error {
        font-size: var(--font-size-xs, 0.75rem);
        color: var(--error-color);
      }

      button {
        padding: 10px 16px;
        border: none;
        border-radius: var(--radius-md, 8px);
        background: var(--primary-color, #2563eb);
        color: white;
        font-weight: var(--font-weight-bold, 700);
        cursor: pointer;

        &:disabled {
          opacity: 0.6;
          cursor: default;
        }
      }
    }
  }

  &.error {
    .error-icon {
      width: 80px;
      height: 80px;
      background: var(--error-color);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
      font-weight: var(--font-weight-bold, 700);
      color: white;
      margin: 0 auto 20px;
    }

    .payment-error-actions {
      margin-top: 24px;
    }

    .retry-payment-btn {
      padding: 14px 24px;
      background: var(--primary-color);
      color: white;
      border: none;
      border-radius: var(--radius-lg, 13px);
      font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: var(--font-size-lg, 1rem);
      font-weight: var(--font-weight-bold, 700);
      cursor: pointer;
      transition: background-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);

      &:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(73, 118, 113, 0.3);
      }

      &:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
      }
    }
  }

  &.timeout {
    .timeout-icon {
      font-size: 4rem;
      margin-bottom: 20px;
    }

    .auto-close {
      font-size: var(--font-size-sm, 0.8125rem);
      margin-top: 20px;
    }
  }
}

.spinner-large,
.spinner-small {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.spinner-small {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.payment-active {
  h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
  }

  .qr-section {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
  }

  .qr-wrapper {
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
  }

  .qr-code {
    display: block;
    width: 250px;
    height: 250px;
  }

  .scan-line {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scan 2s linear infinite;
    box-shadow: 0 0 10px var(--primary-color);
  }

  @keyframes scan {
    0% {
      top: 16px;
    }
    50% {
      top: calc(100% - 18px);
    }
    100% {
      top: 16px;
    }
  }

  .payment-info {
    margin-bottom: 20px;
  }

  .payment-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 16px;

    .label {
      color: var(--text-secondary);
      font-size: var(--font-size-md, 0.9375rem);
    }

    .amount {
      font-size: var(--font-size-2xl, 1.25rem);
      font-weight: var(--font-weight-bold, 700);
      color: var(--text-primary);
    }
  }

  .waiting-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);

    .pulse-dot {
      width: 8px;
      height: 8px;
      background: var(--primary-color);
      border-radius: 50%;
      animation: pulse 1.5s ease-in-out infinite;
    }
  }

  .payment-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;

    .copy-btn,
    .open-btn {
      flex: 1;
      padding: 12px 16px;
      border-radius: var(--radius-sm, 8px);
      font-weight: var(--font-weight-semibold, 600);
      font-size: var(--font-size-md, 0.9375rem);
      cursor: pointer;
      transition: background-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
      text-align: center;
      text-decoration: none;
      border: none;
      white-space: nowrap;

      &:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
      }
    }

    .copy-btn {
      background: var(--success-color);
      color: white;
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);

      &:hover {
        background: color-mix(in srgb, var(--success-color) 85%, black);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
      }

      &:active {
        transform: translateY(0);
      }
    }

    .open-btn {
      background: var(--primary-color);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 12px rgba(73, 118, 113, 0.25);

      &:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(73, 118, 113, 0.35);
      }

      &:active {
        transform: translateY(0);
      }
    }
  }

}

:host ::ng-deep {
  app-dialog.bank-payment-dialog .app-dialog-backdrop {
    background: rgba(17, 24, 39, 0.55);
  }

  app-dialog.bank-payment-dialog .app-dialog-panel {
    width: min(960px, 92vw);
    max-width: min(960px, 92vw);
    height: min(760px, 86vh);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  }

  app-dialog.bank-payment-dialog .app-dialog-panel__body {
    height: 100%;
    box-sizing: border-box;
    padding: 56px 16px 16px;
  }
}

.bank-payment-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-primary);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

// Mobile responsive
@media (max-width: 768px) {
  .cart-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cart-summary {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cart-container.platform {
    padding: 16px;
  }

  .cart-container.platform .cart-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .remove-btn-desktop {
    display: none !important;
  }

  .delete-btn-mobile {
    display: flex;
  }

  :host ::ng-deep app-dialog.payment-dialog .app-dialog-panel__body {
    padding: 24px;
    padding-top: 56px;
  }

  .close-modal-btn {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;

    svg {
      width: 18px;
      height: 18px;
    }
  }

  .qr-code {
    width: 200px !important;
    height: 200px !important;
  }

  .payment-actions {
    flex-direction: column;
    gap: 10px;

    .copy-btn,
    .open-btn {
      width: 100%;
      padding: 12px;
    }
  }

  .payment-method-actions {
    grid-template-columns: 1fr;
  }

  :host ::ng-deep {
    app-dialog.bank-payment-dialog .app-dialog-backdrop {
      padding: 12px;
    }

    app-dialog.bank-payment-dialog .app-dialog-panel {
      width: 94vw;
      max-width: 94vw;
      height: 82vh;
    }

    app-dialog.bank-payment-dialog .app-dialog-panel__body {
      padding: 52px 10px 10px;
    }
  }

  .payment-active h2 {
    font-size: var(--font-size-2xl, 1.25rem);
    margin-bottom: 16px;
  }
}

@media (min-width: 769px) {
  .delete-btn-mobile {
    display: none !important;
  }
}
