/* =============================================================================
   Withdrawal form — [ama_withdrawal] (functions/woocommerce/withdrawal.php)
   Uses the same blocks as the Contact Form 7 forms (.cf7-section-intro, .cf7-section, .cf7-block)
   ========================================================================== */

.ama-withdrawal > * + *{margin-top: var(--ama-margin-top-base, 1.875rem)}

.ama-withdrawal h2{margin: 0 0 1rem}

.ama-withdrawal label:not(.form-check){display: block; font-size: .875rem; line-height: 1.1875rem; font-weight: 600}

   .ama-withdrawal label:not(.form-check) > .form-control{margin-top: .625rem; font-weight: 400}

.ama-wd-help{display: block; margin-top: .375rem; font-size: .8125rem; line-height: 1.1875rem; color: #9A9A9A}

.ama-wd-notice{margin: 0; padding: 1rem 1.25rem; border-radius: .625rem; list-style: none}

.ama-wd-notice.woocommerce-error{background: rgba(220, 104, 108, .1); color: #a33a3e}

.ama-wd-notice.woocommerce-info{background: rgba(52, 178, 226, .1)}

/* logged-in: own orders */
.ama-wd-order-list{margin: 0; padding: 0; list-style: none}

   .ama-wd-order-list > li{display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #edf0f2}

.ama-wd-or{margin: 1.25rem 0 0; font-weight: 600}

/* products */
.ama-wd-items{display: grid; gap: .75rem; margin-top: 1rem}

   .ama-wd-item{
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: .5rem 1.25rem;
      padding: 1rem 1.25rem;
      background-color: #fff;
      border-radius: .625rem;
      box-shadow: var(--ama-general-box-shadow), 0 0 0 1px rgba(230, 229, 217, 1) inset
   }

   .ama-wd-item.is-disabled{opacity: .6}

   .ama-wd-item__check{display: flex; align-items: center; gap: .75rem; margin: 0; padding-left: 0; font-weight: 600}

      .ama-wd-item__check .form-check-input{float: none; margin: 0; flex: 0 0 auto}

      .ama-wd-item__check small{font-weight: 400; color: #9A9A9A}

   .ama-wd-item__qty{display: flex !important; align-items: center; gap: .625rem}

      .ama-wd-item__qty > span{font-weight: 400; color: #9A9A9A}

      .ama-wd-item__qty > .form-control{width: 5rem; margin-top: 0 !important; text-align: center}

   .ama-wd-item__note{grid-column: 1 / -1; margin: 0; font-size: .8125rem; line-height: 1.1875rem; color: #9A9A9A}

/* statement (done screen) */
.ama-wd-statement-title{margin: 0 0 .75rem}

.ama-wd-statement{width: 100%; border-collapse: collapse}

   .ama-wd-statement th,
   .ama-wd-statement td{padding: .625rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid #edf0f2}

   .ama-wd-statement th{width: 35%; padding-right: 1rem; font-weight: 600}

@media (max-width: 575px){
   .ama-wd-item{grid-template-columns: 1fr}
   .ama-wd-order-list > li{flex-wrap: wrap}
}
