.am-body-content button.copyButton {
background-image: none !important;
}
.am-admin a.button, .am-admin button, .am-admin input[type="button"], .am-admin input[type="submit"], .am-body-content a.button, .am-body-content button, .am-body-content input[type="button"], .am-body-content input[type="submit"], .am-popup a.button, .am-popup button, .am-popup input[type="button"], .am-popup input[type="submit"] {
background-image: none !important;
}
/* Logo Theme Toggling */
      .logo-dark { display: none !important; }
      html[data-bs-theme="dark"] .logo-light { display: none !important; }
      html[data-bs-theme="dark"] .logo-dark { display: inline-block !important; }
      /* Image container (UPDATED for much larger logos) */
        .tool-img-container {
            background-color: #ffffff !important;
            height: 155px; /* Slightly taller */
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem; /* Cut padding in HALF to give logo more space */
            flex-grow: 1;
            position: relative;
        }

        .tool-img-container img {
            max-height: 95%; /* Allow it to use almost the full height */
            max-width: 95%;
            width: auto;
            height: auto;
            object-fit: contain;
        }
        /* ==========================================================================
         CHECKOUT / PAYMENT SYSTEM STYLES (Light & Dark Mode)
         ========================================================================== */
      
      /* 1. Base Design (Modern Light Mode) */
      #choose-paysys-wrapper h2 {
          font-size: 1.25rem;
          font-weight: 700;
          margin-bottom: 15px;
          color: #1e293b;
      }

      .am-cart-checkout-paysys-item {
          border: 1px solid #e2e8f0;
          border-radius: 8px;
          padding: 14px 18px;
          margin-bottom: 12px;
          transition: all 0.2s ease;
          background: #ffffff;
          cursor: pointer;
          display: flex;
          align-items: center;
      }

      .am-cart-checkout-paysys-item label {
          display: flex;
          align-items: center;
          gap: 12px;
          margin: 0;
          cursor: pointer;
          width: 100%;
      }

      .am-cart-checkout-paysys-item:hover {
          border-color: #206bc4;
          background: rgba(32, 107, 196, 0.02);
      }

      /* Active/Selected Payment Method */
      .am-cart-checkout-paysys-item.active {
          border: 2px solid #206bc4;
          background: rgba(32, 107, 196, 0.05);
      }

      .am-cart-checkout-paysys-item-title {
          color: #1e293b;
          font-size: 1rem;
      }

      .am-cart-checkout-paysys-item-description {
          color: #64748b;
          font-size: 0.85rem;
          display: block;
          margin-top: 2px;
      }

      /* ==========================================================================
         🌙 DARK MODE OVERRIDES
         ========================================================================== */
      
      html[data-bs-theme="dark"] #choose-paysys-wrapper h2 {
          color: #ffffff !important;
      }
      
      html[data-bs-theme="dark"] .am-cart-checkout-paysys-item {
          background-color: #232e42 !important;
          border: 1px solid rgba(255, 255, 255, 0.1) !important;
      }
      
      html[data-bs-theme="dark"] .am-cart-checkout-paysys-item:hover {
          background-color: rgba(32, 107, 196, 0.1) !important;
          border-color: #206bc4 !important;
      }
      
      html[data-bs-theme="dark"] .am-cart-checkout-paysys-item.active {
          background-color: rgba(32, 107, 196, 0.15) !important;
          border: 2px solid #206bc4 !important;
      }
      
      html[data-bs-theme="dark"] .am-cart-checkout-paysys-item-title,
      html[data-bs-theme="dark"] .am-cart-checkout-paysys-item-title strong {
          color: #f8fafc !important;
      }
      
      html[data-bs-theme="dark"] .am-cart-checkout-paysys-item-description {
          color: #94a3b8 !important;
      }
      /* ==========================================================================
         COUPON CODE BOX (Modern Flexbox + Embedded Icon)
         ========================================================================== */
      
      .am-cart-checkout-c {
          margin: 20px 0;
          max-width: 400px; /* Keeps the input from stretching too far */
      }

      /* Flexbox aligns the input and button perfectly side-by-side */
      .am-cart-checkout-c-input {
          display: flex;
          gap: 10px;
          align-items: center;
      }

      /* 1. The Input Field with Embedded Ticket Icon */
      .am-cart-checkout-c-input input[type="text"] {
          flex-grow: 1;
          padding: 0.6rem 1rem 0.6rem 2.6rem !important; /* Extra padding on left for the icon */
          border: 1px solid #dce1e7;
          border-radius: 6px;
          font-size: 0.95rem;
          color: #1e293b;
          background-color: #fff;
          /* Magic SVG Injection - Dark Gray Ticket Icon */
          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-ticket' width='20' height='20' viewBox='0 0 24 24' stroke-width='1.5' stroke='%2364748b' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M15 5l0 2' /%3E%3Cpath d='M15 11l0 2' /%3E%3Cpath d='M15 17l0 2' /%3E%3Cpath d='M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2' /%3E%3C/svg%3E");
          background-repeat: no-repeat;
          background-position: 12px center;
          transition: all 0.2s ease;
      }

      .am-cart-checkout-c-input input[type="text"]:focus {
          border-color: #206bc4;
          box-shadow: 0 0 0 0.25rem rgba(32, 107, 196, 0.25);
          outline: none;
      }

      /* 2. The Apply Button */
      .am-cart-checkout-c-input .am-cart-checkout-c-apply {
          background-color: #206bc4 !important;
          color: #fff !important;
          border: none !important;
          padding: 0.6rem 1.25rem !important;
          border-radius: 6px !important;
          font-weight: 600 !important;
          font-size: 0.95rem !important;
          cursor: pointer !important;
          transition: all 0.2s ease !important;
          box-shadow: 0 2px 4px rgba(32, 107, 196, 0.15) !important;
          white-space: nowrap; /* Prevents button text from breaking */
      }

      .am-cart-checkout-c-input .am-cart-checkout-c-apply:hover {
          background-color: #1a569d !important;
          transform: translateY(-1px) !important;
          box-shadow: 0 4px 8px rgba(32, 107, 196, 0.25) !important;
      }

      /* 3. Error Messages for invalid coupons */
      #coupon-errors-container {
          color: #d63939;
          font-size: 0.85rem;
          margin-top: 8px;
          font-weight: 500;
      }

      /* Active Coupon Preview Styling */
      .am-cart-checkout-c-preview {
          padding: 0.6rem 1rem;
          background: rgba(47, 179, 68, 0.1);
          border: 1px dashed #2fb344;
          border-radius: 6px;
          margin-bottom: 10px;
          display: inline-block;
      }
      .am-cart-checkout-c-preview a {
          color: #2fb344 !important;
          font-weight: 600;
          text-decoration: none;
      }

      /* ==========================================================================
         🌙 DARK MODE OVERRIDES FOR COUPON BOX
         ========================================================================== */
      html[data-bs-theme="dark"] .am-cart-checkout-c-input input[type="text"] {
          background-color: #1a2234;
          border-color: rgba(255, 255, 255, 0.1);
          color: #f8fafc;
          /* Swaps the injected SVG ticket icon to a light slate color */
          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-ticket' width='20' height='20' viewBox='0 0 24 24' stroke-width='1.5' stroke='%2394a3b8' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M15 5l0 2' /%3E%3Cpath d='M15 11l0 2' /%3E%3Cpath d='M15 17l0 2' /%3E%3Cpath d='M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2' /%3E%3C/svg%3E");
      }
      
      html[data-bs-theme="dark"] .am-cart-checkout-c-input input[type="text"]:focus {
          border-color: #206bc4;
      }
      /* ==========================================================================
         MODERN RECEIPT / INVOICE TABLE (Light & Dark Mode)
         ========================================================================== */
      
      .am-receipt {
          background: #ffffff !important;
          border: 1px solid #e2e8f0 !important;
          border-radius: 12px !important;
          overflow: hidden !important; /* Rounds the corners of the table */
          margin: 20px 0 !important;
          box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
      }

      .am-receipt-table {
          width: 100% !important;
          border-collapse: collapse !important;
          font-size: 0.95rem !important;
          margin: 0 !important;
      }

      /* Headers */
      .am-receipt-table th {
          background: #f8fafc !important;
          color: #475569 !important;
          font-weight: 600 !important;
          padding: 14px 16px !important;
          text-align: left !important;
          border-bottom: 1px solid #e2e8f0 !important;
          text-transform: uppercase !important;
          font-size: 0.75rem !important;
          letter-spacing: 0.05em !important;
      }

      /* Rows & Cells */
      .am-receipt-table td {
          padding: 14px 16px !important;
          color: #1e293b !important;
          border-bottom: 1px solid #e2e8f0 !important;
          vertical-align: middle !important;
      }

      /* Align numbers to the right */
      .am-receipt-table th:last-child,
      .am-receipt-table td.am-receipt-price,
      .am-receipt-table th.am-receipt-unit-price,
      .am-receipt-table td.am-receipt-unit-price {
          text-align: right !important;
      }

      /* The Crossed-Out Discount Price */
      .am-receipt-discounted-price {
          text-decoration: line-through !important;
          color: #94a3b8 !important;
          margin-right: 10px !important;
          font-size: 0.9em !important;
      }

      /* The Final Price (Make it pop with Green) */
      .am-receipt-final-price {
          color: #2fb344 !important;
          font-weight: 700 !important;
          font-size: 1.1em !important;
      }

      /* Subtotal & Total Rows */
      .am-receipt-row-total td {
          background: #f1f5f9 !important;
          font-size: 1.05rem !important;
      }
      
      /* Hide aMember's ugly empty delimiter rows */
      .am-receipt-row-delimiter td {
          display: none !important;
      }

      /* Subscription Terms (Bottom row) */
      .am-receipt-terms {
          background: #ffffff !important;
          color: #64748b !important;
          font-size: 0.85rem !important;
          text-align: center !important;
          padding: 16px !important;
          border-top: 1px dashed #cbd5e1 !important;
      }

      /* ==========================================================================
         🌙 DARK MODE OVERRIDES FOR RECEIPT
         ========================================================================== */
      
      html[data-bs-theme="dark"] .am-receipt {
          background: #232e42 !important;
          border-color: rgba(255, 255, 255, 0.08) !important;
          box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
      }

      html[data-bs-theme="dark"] .am-receipt-table th {
          background: #1e293b !important;
          color: #94a3b8 !important;
          border-color: rgba(255, 255, 255, 0.08) !important;
      }

      html[data-bs-theme="dark"] .am-receipt-table td {
          color: #f8fafc !important;
          border-color: rgba(255, 255, 255, 0.05) !important;
      }

      html[data-bs-theme="dark"] .am-receipt-row-total td {
          background: rgba(0, 0, 0, 0.15) !important;
      }

      html[data-bs-theme="dark"] .am-receipt-terms {
          background: #232e42 !important;
          color: #94a3b8 !important;
          border-top: 1px dashed rgba(255, 255, 255, 0.1) !important;
      }

      html[data-bs-theme="dark"] .am-receipt-discounted-price {
          color: #64748b !important;
      }
      /* ==========================================================================
         FIX STUBBORN WHITE CELLS IN RECEIPT
         ========================================================================== */
      
      /* Strip the hardcoded white background from aMember's spacer cells */
      .am-receipt-table .am-receipt-indent {
          background-color: transparent !important;
          border-left: none !important;
          border-bottom: none !important;
      }

      /* Force all standard cells to be transparent in Dark Mode */
      html[data-bs-theme="dark"] .am-receipt-table,
      html[data-bs-theme="dark"] .am-receipt-table td {
          background-color: transparent !important; 
      }

      /* Ensure the total row still keeps its dark highlight */
      html[data-bs-theme="dark"] .am-receipt-row-total td {
          background-color: rgba(0, 0, 0, 0.2) !important; 
      }
      