/* Phone repair layer for native WooCommerce cart, checkout/address and account screens. */
@media (max-width: 680px) {
  body.woocommerce-cart .ec-floating-whatsapp,
  body.woocommerce-checkout .ec-floating-whatsapp,
  body.woocommerce-account .ec-floating-whatsapp { display:none !important; }

  .etwc-shell--cart,
  .etwc-shell--checkout,
  .ec-account-page { padding:23px 16px 132px !important; }
  .etwc-page-head { padding-bottom:18px; }
  .etwc-page-head h1 { font-size:clamp(31px,9vw,37px); }
  .etwc-steps { gap:6px; margin-bottom:22px; }
  .etwc-steps li { gap:6px; font-size:10px; }
  .etwc-steps i { width:22px; height:22px; }

  /* Cart: a table becomes a clear product card, not a squeezed desktop row. */
  .etwc-shell--cart .woocommerce-cart-form { overflow:visible !important; border:0 !important; background:transparent !important; box-shadow:none !important; }
  .etwc-shell--cart .shop_table { border:0 !important; background:transparent !important; }
  .etwc-shell--cart .shop_table tr.woocommerce-cart-form__cart-item {
    display:grid !important;
    grid-template-columns:64px minmax(0,1fr) 84px;
    grid-template-areas:
      'thumb name name'
      'thumb price subtotal'
      'thumb quantity quantity';
    gap:10px 12px;
    margin:0 0 14px;
    padding:16px;
    border:1px solid #dbe7e8;
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 24px rgba(17,61,72,.06);
  }
  .etwc-shell--cart .shop_table tr.woocommerce-cart-form__cart-item > td {
    display:block !important;
    width:auto !important;
    min-width:0;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
  }
  .etwc-shell--cart td.product-thumbnail { grid-area:thumb; position:static !important; display:grid !important; place-items:center; width:64px !important; height:64px; padding:5px !important; border:1px solid #e1ebeb !important; border-radius:11px; background:#fff; }
  .etwc-shell--cart td.product-thumbnail img { display:block; width:52px !important; height:52px !important; max-width:100%; object-fit:contain; }
  .etwc-shell--cart td.product-remove { position:absolute !important; top:16px; right:16px; display:grid !important; place-items:center; width:29px !important; height:29px; }
  .etwc-shell--cart td.product-remove a.remove { display:grid; place-items:center; width:29px; height:29px; border:1px solid #f0c9c4; border-radius:50%; background:#fff7f6; color:#bd5148 !important; font-size:22px; line-height:1; }
  .etwc-shell--cart td.product-name { grid-area:name; min-height:0 !important; padding:1px 37px 0 0 !important; font-size:15px; font-weight:850; line-height:1.28; }
  .etwc-shell--cart td.product-name a { display:-webkit-box !important; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
  .etwc-shell--cart td.product-price { grid-area:price; }
  .etwc-shell--cart td.product-subtotal { grid-area:subtotal; text-align:right !important; }
  .etwc-shell--cart .shop_table td.product-price:before,
  .etwc-shell--cart .shop_table td.product-subtotal:before { display:block !important; min-width:0 !important; margin:0 0 3px; color:#70858a; font-size:9px; font-weight:900; letter-spacing:.06em; }
  .etwc-shell--cart .shop_table td.product-subtotal:before { content:'ARA TOPLAM'; }
  .etwc-shell--cart td.product-price,
  .etwc-shell--cart td.product-subtotal { color:#08706e; font-size:14px; font-weight:900; }
  .etwc-shell--cart td.product-price .woocommerce-Price-amount,
  .etwc-shell--cart td.product-subtotal .woocommerce-Price-amount { display:block; margin-top:3px; white-space:nowrap; }
  .etwc-shell--cart td.product-quantity { grid-area:quantity; display:flex !important; align-items:center; justify-content:space-between; padding-top:10px !important; border-top:1px solid #e3eded !important; }
  .etwc-shell--cart td.product-quantity:before { content:'Miktar'; color:#627b81; font-size:11px; font-weight:900; }
  .etwc-shell--cart td.product-quantity .quantity input.qty { width:72px !important; min-height:40px; }
  .etwc-shell--cart .shop_table tr:last-child { display:block !important; margin:0; padding:16px; border:1px solid #dbe7e8; border-radius:16px; background:#f8fbfb; }
  .etwc-shell--cart .shop_table tr:last-child > td.actions { display:grid !important; width:100% !important; gap:10px; padding:0 !important; }
  .etwc-shell--cart .coupon { display:grid !important; grid-template-columns:1fr 1fr; gap:8px; width:100%; margin:0 !important; }
  .etwc-shell--cart .coupon .input-text { grid-column:1 / -1; width:100% !important; min-height:46px; margin:0 !important; }
  .etwc-shell--cart .coupon button,
  .etwc-shell--cart .actions > button { min-height:46px; width:100% !important; margin:0 !important; padding:0 8px !important; white-space:nowrap; font-size:12px; }
  .etwc-shell--cart .cart-collaterals .cart_totals { padding:19px !important; border-radius:16px !important; }
  .etwc-shell--cart .wc-proceed-to-checkout a { min-height:52px; display:flex; align-items:center; justify-content:center; }

  /* Checkout: preserve source order on a narrow screen and give all address fields a full line. */
  .etwc-shell--checkout form.woocommerce-checkout { display:flex !important; flex-direction:column; align-items:stretch !important; gap:0; }
  .etwc-shell--checkout form.woocommerce-checkout #customer_details { order:1; width:100% !important; flex:0 0 100% !important; align-self:stretch !important; }
  .etwc-shell--checkout form.woocommerce-checkout #order_review_heading { order:2; width:100% !important; flex:0 0 100% !important; margin:26px 0 12px !important; font-size:21px; line-height:1.2; }
  .etwc-shell--checkout form.woocommerce-checkout #order_review { order:3; width:100% !important; flex:0 0 100% !important; margin:0 !important; }
  .etwc-shell--checkout .col2-set,
  .etwc-shell--checkout .col2-set .col-1,
  .etwc-shell--checkout .col2-set .col-2 { float:none !important; width:100% !important; margin:0 !important; }
  .etwc-shell--checkout .woocommerce-billing-fields,
  .etwc-shell--checkout .woocommerce-additional-fields { padding:0 !important; }
  .etwc-shell--checkout .woocommerce form .form-row { float:none !important; width:100% !important; margin:0 0 15px !important; }
  .etwc-shell--checkout .woocommerce form .form-row input.input-text,
  .etwc-shell--checkout .woocommerce form .form-row textarea,
  .etwc-shell--checkout .select2-container { width:100% !important; }
  .etwc-shell--checkout .woocommerce form .form-row input.input-text,
  .etwc-shell--checkout .select2-selection { min-height:48px !important; }
  .etwc-shell--checkout #order_review { padding:18px !important; border-radius:16px !important; }

  /* Account: prevent fixed support/nav controls obscuring authentication and address work. */
  .ec-account-page__card.ec-account-shell { border-radius:16px; }
  .ec-account-intro,
  .ec-account-auth { padding:23px !important; }
  .ec-account-intro h2 { font-size:24px; }
  .ec-account-page .woocommerce button.button { width:100%; min-height:48px; }
  .ec-account-page .woocommerce .form-row .woocommerce-form-login__rememberme { display:flex; align-items:center; min-height:36px; margin:0 !important; }
}
@media (max-width: 380px) {
  .ec-header__row { width:calc(100% - 42px) !important; gap:6px !important; }
  .ec-header__tools { gap:4px !important; }
  .ec-header__tools .ec-cart-link { gap:2px !important; padding:0 !important; }
  .etwc-shell--cart .shop_table td.product-subtotal:before { content:'TOPLAM'; font-size:8px; letter-spacing:.04em; }
}
