/* Mediryo original WooCommerce Blocks cart/checkout presentation.
 * Adapted from the supplied live wp-custom-css; no Elementor dependency.
 * Enqueue only on is_cart() / is_checkout(), after WooCommerce Blocks styles.
 * Native block layout, validation and translated content remain authoritative.
 */

/* ── Titlul paginii "Checkout" ── */
body.woocommerce-checkout .entry-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.3px;
}

/* ── Titlurile secțiunilor (Informații contact, Adresă livrare etc.) ── */
.wc-block-components-checkout-step__title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
}

/* Linie verde sub titlul fiecărei secțiuni */
.wc-block-components-checkout-step {
  border-top: 1px solid #f0f4f3 !important;
}

.wc-block-components-checkout-step:first-child {
  border-top: none !important;
}

/* ── Inputuri — doar focus color ── */
.wc-block-components-text-input input:focus,
.wc-block-components-text-input input:focus-visible {
  border-color: #4FA393 !important;
  box-shadow: 0 0 0 3px rgba(79, 163, 147, 0.12) !important;
  outline: none !important;
}

/* ── Select (Țară, Județ) — doar focus ── */
.wc-blocks-components-select__container:focus-within {
  border-color: #4FA393 !important;
  box-shadow: 0 0 0 3px rgba(79, 163, 147, 0.12) !important;
}

/* ── Checkbox accent color ── */
.wc-block-components-checkbox__input {
  accent-color: #4FA393 !important;
}

.wc-block-components-checkbox__label {
  font-size: 13.5px !important;
  color: #374151 !important;
}

/* ── Radio buttons livrare — DOAR culori, fără padding/layout ── */
.wc-block-components-radio-control__label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1a1a2e !important;
}

.wc-block-components-radio-control__secondary-label {
  color: #4FA393 !important;
  font-weight: 700 !important;
}

.wc-block-components-radio-control__input {
  accent-color: #4FA393 !important;
}

/* ── Butonul "Plasează comanda" ── */
.wc-block-components-checkout-place-order-button {
  background: linear-gradient(135deg, #4FA393 0%, #3d8a7a 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 4px 14px rgba(79, 163, 147, 0.4) !important;
  transition: opacity 0.2s, transform 0.15s !important;
}

.wc-block-components-checkout-place-order-button:hover {
  opacity: 0.92 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(79, 163, 147, 0.45) !important;
}

.wc-block-components-checkout-place-order-button:active {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* ── Termeni și condiții ── */
.wc-block-checkout__terms {
  font-size: 12px !important;
  color: #9ca3af !important;
}

.wc-block-checkout__terms a {
  color: #4FA393 !important;
  text-decoration: underline !important;
}

/* ── Rezumat comandă — titlu ── */
.wc-block-components-sidebar .wc-block-components-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #1a1a2e !important;
}

/* ── Produse în rezumat ── */
.wc-block-order-summary-item__description {
  font-weight: 600 !important;
  color: #1a1a2e !important;
}

.wc-block-order-summary-item__individual-price {
  color: #6b7280 !important;
  font-size: 12.5px !important;
}

.wc-block-order-summary-item__total-price {
  font-weight: 700 !important;
  color: #1a1a2e !important;
}

/* ── Totals labels ── */
.wc-block-components-totals-item__label {
  color: #6b7280 !important;
  font-size: 13.5px !important;
}

.wc-block-components-totals-item__value {
  font-weight: 600 !important;
  color: #1a1a2e !important;
}

/* Livrare gratuită — verde ── */
.wc-block-components-totals-shipping .wc-block-components-totals-item__value,
.wc-block-components-totals-shipping .wc-block-components-totals-item__value * {
  color: #4FA393 !important;
  font-weight: 700 !important;
}

/* ── Total final — mare și verde ── */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #1a1a2e !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #2E8B6E !important;
}

/* ── Cupoane link ── */
.wc-block-components-totals-coupon__button,
.wc-block-components-panel__button {
  color: #4FA393 !important;
  font-weight: 600 !important;
}

/* ── Notice eroare ── */
.wc-block-components-notice-banner.is-error {
  border-left: 4px solid #e53e3e !important;
}

/* Keep the real translated WooCommerce guest notice visible. */
body.woocommerce-checkout .wc-block-checkout__guest-checkout-notice {
    font-size: 13px;
    color: #2E8B6E;
}

/* ── Spinner loading ── */
.wc-block-components-spinner::after {
  border-top-color: #4FA393 !important;
}

/* ── Fundal pagina checkout ── */
body.woocommerce-checkout .entry-content {
  background: #f7f9f8;
}



/* =========================================================
   MEDIRYO - CART - BUTON FINALIZARE COMANDA
   ========================================================= */

body.woocommerce-cart .wc-block-cart__submit-button {
    background: #4FA393 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 4px !important;

    font-weight: 700 !important;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease !important;
}

/* Textul din buton */
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-button span,
body.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text {
    color: #ffffff !important;
    text-decoration: none !important;
}


/* HOVER */
body.woocommerce-cart .wc-block-cart__submit-button:hover {
    background: #3D8A7A !important;
    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow: 0 5px 14px rgba(79, 163, 147, 0.30) !important;
}


/* Text alb si la hover */
body.woocommerce-cart .wc-block-cart__submit-button:hover span,
body.woocommerce-cart .wc-block-cart__submit-button:hover .wc-block-components-button__text {
    color: #ffffff !important;
}


/* CLICK */
body.woocommerce-cart .wc-block-cart__submit-button:active {
    background: #377C6E !important;
    transform: translateY(0);
}

/* =========================================================
   MEDIRYO - CART - FOOTER LA BAZA ECRANULUI
   ========================================================= */

body.woocommerce-cart {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.woocommerce-cart #content {
    flex: 1 0 auto;
}

body.woocommerce-cart .zc-header,
body.woocommerce-cart .zc-footer {
    flex-shrink: 0;
}

