.wc-block-product .wc-est-delivery-loop {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  font-size: 13px;
  color: #003366;
  font-weight: 500;
  line-height: 1.4;
  text-align:center;
}

.wc-block-product .wc-est-delivery-loop-fast {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  font-size: 13px;
  color: #003366;
  font-weight: 500;
  line-height: 1.4;
  text-align:center;
}

/* Add a small icon before the text */
.wc-block-product .wc-est-delivery-loop::before {
  content: "🚚";
  margin-right: 6px;
  font-size: 14px;
  vertical-align: middle;
}


/* Add a small icon before the text  fast delivery*/
.wc-block-product .wc-est-delivery-loop-fast::before {
  content: "🚚";
  margin-right: 6px;
  font-size: 14px;
  vertical-align: middle;
}
.wc-ed-location-icon::before {
  content: "📌";
  margin-right: 6px;
  font-size: 14px;
  vertical-align: middle;
}


/* Optional: ensure spacing below price */
.wc-block-product .wc-est-delivery-loop {
  margin-top: 8px ;
  display: block
}

.wc-block-product .wc-est-delivery-loop-fast {
  margin-top: 8px ;
  display: block
}

/* classic wc loop */

.wc-est-delivery-loop{

   display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 6px 10px;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.4;
}


.wc-est-delivery-loop::before {
  content: "🚚";
  font-size: 16px;
  margin-right: 8px;
  vertical-align: middle;
}


.wc-est-delivery-loop-fast{

   display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 6px 10px;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.4;
}


.wc-est-delivery-loop-fast::before {
  content: "🚚";
  font-size: 14px;
  margin-right: 8px;
  vertical-align: middle;
}


/*Single product page */
.wc-est-delivery-single {
  display: flex;
  align-items: center;
  width: 100%;
  clear: both;
  margin-top: 12px;
  padding: 6px 0px;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.4;
  box-sizing: border-box;
}

.wc-est-delivery-single-fast {
  display: flex;
  align-items: center;
  width: 100%;
  clear: both;
  margin-top: 12px;
  padding: 6px 0px;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.4;
  box-sizing: border-box;
}
.wc-est-delivery-single::before {
  content: "🚚";
  font-size: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.wc-est-delivery-single-fast::before {
  content: "🚚";
  font-size: 14px;
  margin-right: 8px;
  vertical-align: middle;
}




/*cart  page */
.wc-est-cart{
  display: block;
  align-items: center;
  margin-top: 4px;
  padding: 0px 0px;
  font-size: 14px;
  font-weight:500;
  color: #555;
  line-height: 1.4;
}

.wc-est-cart-fast{
  display: block;
  align-items: center;
  margin-top: 4px;
  padding: 0px 0px;
  font-size: 14px;
  font-weight:500;
  color: #555;
  line-height: 1.4;
}

.wc-est-cart::before {
  content: "🚚";
  font-size: 16px;
  margin-right: 8px;
  vertical-align: middle;
}


.wc-est-cart-fast::before {
  content: "🚚";
  font-size: 14px;
  margin-right: 8px;
  vertical-align: middle;
}




/*checkout  page */
.wc-est-checkout{
  display: block;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 14px;
  padding: 0px 0px;
  font-size: 12px;
  color: #555;
  font-weight:500;
  line-height: 1.5;
}

.wc-est-checkout-fast{
  display: block;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 14px;
  padding: 0px 0px;
  font-size: 12px;
  color: #555;
  font-weight:500;
  line-height: 1.5;
}

.wc-est-checkout::before {
  content: "🚚";
  font-size: 16px;
  margin-right: 8px;
  vertical-align: middle;
}


.wc-est-checkout-fast::before {
  content: "🚚";
  font-size: 14px;
  margin-right: 8px;
  vertical-align: middle;
}

.wc-est-delivery-confirm{
  display: block;
  align-items: center;
  margin-top: 4px;
  padding: 0px 0px;
  font-size: 12px;
  color: #555;
  font-weight:500;
  line-height: 1.4;
}

.wc-est-delivery-confirm::before {
  content: "🚚";
  font-size: 16px;
  margin-right: 8px;
  vertical-align: middle;
}


.wc-est-delivery-confirm-fast::before {
  content: "🚚";
  font-size: 14px;
  margin-right: 8px;
  vertical-align: middle;
}

/* cutoff help (using data-title instead of title) */
.wc-block-product .wc-est-delivery-loop[data-title],
.wc-block-product .wc-est-delivery-loop-fast[data-title],
.wc-est-delivery-loop[data-title],
.wc-est-delivery-loop-fast[data-title],
.wc-est-delivery-single[data-title],
.wc-est-delivery-single-fast[data-title],
.wc-est-cart[data-title],
.wc-est-cart-fast[data-title],
.wc-est-checkout[data-title],
.wc-est-checkout-fast[data-title],
.wc-est-delivery-confirm[data-title],
.wc-est-delivery-confirm-fast[data-title]{
    position: relative;
    cursor: help;
}

.wc-block-product .wc-est-delivery-loop[data-title]:hover::after,
.wc-block-product .wc-est-delivery-loop-fast[data-title]:hover::after,
.wc-est-delivery-loop[data-title]:hover::after,
.wc-est-delivery-loop-fast[data-title]:hover::after,
.wc-est-delivery-single[data-title]:hover::after,
.wc-est-delivery-single-fast[data-title]:hover::after,
.wc-est-cart[data-title]:hover::after,
.wc-est-cart-fast[data-title]:hover::after,
.wc-est-checkout[data-title]:hover::after,
.wc-est-checkout-fast[data-title]:hover::after,
.wc-est-delivery-confirm[data-title]:hover::after,
.wc-est-delivery-confirm-fast[data-title]:hover::after{
    content: attr(data-title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 999;
}

/*zipcode */
.wc-ed-location-box {
    display: block;
    width: 100%;
    clear: both;
    margin-bottom: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.wp-block-woocommerce-checkout-order-summary-cart-items-block .wc-ed-location-box {

    font-size: 12px;
}

.wp-block-woocommerce-checkout-order-summary-cart-items-block .wc-est-checkout-fast {

    font-size: 12px;
}

.wp-block-woocommerce-checkout-order-summary-cart-items-block .wc-est-checkout {

    font-size: 12px;
}
.wp-block-woocommerce-checkout-order-summary-cart-items-block .wc-est-checkout-fast::before  {

    font-size: 12px;
}

.wp-block-woocommerce-checkout-order-summary-cart-items-block .wc-est-checkout::before  {

    font-size: 12px;
}




.wc-ed-postcode-input {
    width: 120px;
    padding: 4px 6px;
}

.wc-ed-apply-postcode,
.wc-ed-change-postcode {
    margin-left: 6px;
    background: none;
    border: none;
    color: #007185;
    cursor: pointer;
}

/*popup */
.wc-ed-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.wc-ed-modal.active {
    display: block;
}

.wc-ed-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

.wc-ed-modal-content {
    position: relative;
    max-width: 420px;
    margin: 8% auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: wcFadeIn 0.2s ease;
}

@keyframes wcFadeIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.wc-ed-title {
    margin-bottom: 15px;
    font-size: 18px;
}

.wc-ed-modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
     box-sizing: border-box;
}

.wc-ed-modal-apply {
    width: 100%;
    padding: 12px;
    border: none;
    background: #0073aa;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.wc-ed-modal-apply:hover {
    background: #005f8d;
}

.wc-ed-close {
    position: absolute;
    right: 12px;
    top: 10px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

.wc-ed-error {
    color: red;
    font-size: 13px;
    margin-top: 8px;
}

.wc-ed-modal-apply.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.wc-ed-modal-apply.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    animation: wc-ed-spin 0.6s linear infinite;
}

@keyframes wc-ed-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.wc-location-est-loop .wc-ed-location-box{
  text-align:center;
}
.wc-location-est-classic-cart .wc-ed-location-box{
  text-align:left;
}

/* Base message */
.wc-ed-msg {
    font-size: 13px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    line-height: 1.4;
}

/* 🔵 Ask postcode */
.wc-ed-require-postcode {

    color: #1d2327;
}

/* Optional: clickable feel */
.wc-ed-require-postcode a {
    color: #0073aa;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

/* ⚪ No postcode (soft) */
.wc-ed-no-postcode {
    background: #f9f9f9;
    border-left: 4px solid #dcdcde;
    color: #555;
}

/* 🔴 Unavailable */
.wc-ed-unavailable {

    color: #8a1f11;
}

.wc-ed-cart{

  text-align:left;
}

.wc-ed-loop{

  text-align:center;
}
.wc-ed-unavailable-wrap {
    font-size: 12px;
    margin-top: 6px;

}
.wc-ed-textalign-center {
  text-align:center;

}
.wc-ed-textalign-left {
  text-align:left;

}
.wc-ed-textalign-right {
  text-align:right;

}

.wc-ed-checkout{
  margin-bottom:10px
}

.wc-ed-unavailable-msg {
    color: #777;
    margin-right: 6px;
}

.wc-ed-check-link {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}
