.woocommerce-cart-form__contents{border:0!important;border-collapse:separate;border-spacing:0 10px}
.woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item td{background:#d4ecff;border:0!important}
.woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item:nth-child(even) td{background:#ffe0cd}
.woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item:nth-child(3n) td{background:#dff3dd}
.woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item td:first-child{border-radius:0 14px 14px 0}
.woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item td:last-child{border-radius:14px 0 0 14px}
.babayishop-cart-services{align-items:center;direction:rtl;display:flex;flex-wrap:wrap;gap:6px;margin:0}
.woocommerce-cart-form td.product-name{position:relative}
.woocommerce-cart-form td.product-name>.babayishop-service-control{align-items:center;display:flex;flex-direction:column;gap:8px;position:absolute;right:10px;top:50%;transform:translateY(-50%);width:115px}
.woocommerce-cart-form td.product-name>.babayishop-service-control>a{max-width:115px;text-align:right}
.woocommerce-cart-form td.product-name>.babayishop-cart-services{float:left;max-width:calc(100% - 125px);width:calc(100% - 125px);margin:0 0 0 10px}
.woocommerce-cart-form td.product-name .babayishop-service-control .babayishop-open-services{min-height:38px;padding:5px 7px;position:static;transform:none;width:102px;line-height:1.25;font-size:11px;white-space:normal}
.babayishop-open-services{background:#ff6515;border:1px solid #e7560a;border-radius:8px;box-shadow:0 3px 7px #ff65153d;color:#fff;cursor:pointer;font-weight:800;padding:8px 12px}
.babayishop-open-services.is-attention{animation:babayishop-service-pulse 1.45s ease-in-out infinite}
@keyframes babayishop-service-pulse{50%{box-shadow:0 0 0 10px #ff651542,0 8px 18px #ff65155c;transform:scale(1.10)}}
.woocommerce-cart .button,.woocommerce-cart button,.woocommerce-cart input[type="submit"],.woocommerce-cart a.button{box-shadow:0 3px 7px #1d4e7433!important}
.woocommerce-cart-form .quantity .plus,.woocommerce-cart-form .quantity .minus,.woocommerce-cart-form .quantity button,.woocommerce-cart-form [data-quantity-plus],.woocommerce-cart-form [data-quantity-minus]{background:#fff!important;border:1px solid #dbe5ef!important;box-shadow:0 3px 7px #062c5526!important;color:#062c55!important;font-weight:800}
.woocommerce-cart-form a.remove{align-items:center!important;background:#fff!important;border:2px solid #ef8d83!important;border-radius:50%!important;box-shadow:0 3px 7px #d92d2026!important;color:transparent!important;display:grid!important;font-size:0!important;height:40px!important;justify-content:center!important;line-height:1!important;min-height:40px!important;min-width:40px!important;place-items:center!important;position:relative!important;width:40px!important}.woocommerce-cart-form a.remove::before,.woocommerce-cart-form a.remove::after{background:#d92d20;content:"";height:2px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%) rotate(45deg);width:19px}.woocommerce-cart-form a.remove::after{transform:translate(-50%,-50%) rotate(-45deg)}
.woocommerce-notices-wrapper :is(.woocommerce-message,.woocommerce-info,.woocommerce-error){position:relative}
.woocommerce-notices-wrapper :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) :is([class*="close"],[class*="dismiss"],[aria-label="بستن"]){align-items:center!important;display:grid!important;height:32px!important;justify-content:center!important;left:10px!important;line-height:1!important;place-items:center!important;position:absolute!important;top:50%!important;transform:translateY(-50%)!important;width:32px!important}
.babayishop-cart-services small{color:#596777;display:block;margin-top:5px}
.babayishop-cart-service-lines{align-items:stretch;display:inline-grid!important;gap:6px;grid-template-columns:minmax(0,max-content);margin:0;max-width:100%;width:max-content}
.babayishop-cart-service-line{background:#fff!important;border:1px solid #dbe5ef;box-shadow:0 2px 5px #062c5517;max-width:100%;min-height:34px;padding:4px 7px;width:100%}
.babayishop-cart-service-line>span{font-size:.84em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.babayishop-service-child-name{color:#062c55;display:block;font-size:.85em;margin-bottom:3px}
.babayishop-service-modal{align-items:center;background:#0f172a99;display:flex;inset:0;justify-content:center;padding:16px;position:fixed;z-index:100000}
.babayishop-service-modal__dialog{background:#fff;border-radius:16px;box-shadow:0 18px 52px #0004;direction:rtl;max-width:500px;padding:22px;position:relative;width:min(100%,500px)}
.babayishop-service-modal__dialog h2{margin:0 0 8px}
.babayishop-service-modal__close{align-items:center;background:none;border:0;color:#44505e;cursor:pointer;display:grid;font-size:28px;height:40px;justify-content:center;left:12px;line-height:1;padding:0;place-items:center;position:absolute;top:8px;width:40px}
.babayishop-service-modal__items{display:grid;gap:8px;margin:16px 0}
.babayishop-service-modal__items label{align-items:center;border:1px solid #dce5ec;border-radius:10px;cursor:pointer;display:flex;gap:10px;padding:11px}
.babayishop-service-modal__items span{display:grid;gap:3px}
.babayishop-service-modal__items small{color:#596777}
.babayishop-service-modal__save{background:#16803a;border:0;border-radius:9px;color:#fff;cursor:pointer;font-weight:800;padding:11px 18px;width:100%}
@media(min-width:701px){
  /* Service rows reserve a wider title/control column; its natural height also expands the cart row. */
  .woocommerce-cart-form td.product-name:has(>.babayishop-cart-services)>.babayishop-service-control{align-items:center;float:right;position:static;transform:none;width:175px}
  .woocommerce-cart-form td.product-name:has(>.babayishop-cart-services)>.babayishop-service-control>a{max-width:175px;overflow-wrap:anywhere;width:100%}
  .woocommerce-cart-form td.product-name:has(>.babayishop-cart-services)>.babayishop-cart-services{float:left;max-width:calc(100% - 195px);width:calc(100% - 195px)}
  .woocommerce-cart-form td.product-name:has(>.babayishop-cart-services)::after{clear:both;content:"";display:block}
}
@media(max-width:700px){
  .woocommerce-cart-form__contents{border:0!important;border-collapse:separate!important;border-spacing:0 14px!important}
  .woocommerce-cart-form__contents tbody{display:block}
  .woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item{background:#d4ecff!important;border-radius:14px;box-shadow:none!important;display:block!important;margin:0 0 14px!important;overflow:hidden;padding:8px 0}
  .woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item:nth-child(even){background:#ffe0cd!important}
  .woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item:nth-child(3n){background:#dff3dd!important}
  .woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item td{background:transparent!important}
  .woocommerce-cart-form td.product-name>.babayishop-service-control{align-items:flex-start;position:static;transform:none;width:auto}
  .woocommerce-cart-form td.product-name>.babayishop-service-control>a{max-width:none}
  .woocommerce-cart-form td.product-name>.babayishop-cart-services{float:none;max-width:none;width:auto;margin-top:8px}
  .woocommerce-cart-form td.product-name .babayishop-service-control .babayishop-open-services{width:auto}
}
@media(prefers-reduced-motion:reduce){.babayishop-open-services.is-attention{animation:none}}
