/* SOFRA v12.9.79 — isolated Paket Servis card and action layout repair.
   Existing main styles and active payment button palette remain untouched. */
.delivery-page-shell .delivery-queue-card .delivery-queue-actionbar{
  min-width:0;
  width:100%;
  max-width:354px;
  justify-self:end;
  align-self:center;
}
.delivery-page-shell .delivery-queue-card .delivery-queue-actionbar .delivery-row-actions{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  justify-content:stretch !important;
}
.delivery-page-shell .delivery-queue-card .delivery-queue-actionbar .delivery-row-actions > .btn{
  box-sizing:border-box;
  min-width:0;
  width:100%;
  grid-column:auto !important;
  min-height:42px;
  padding:8px 10px;
  border-radius:12px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  font-size:12px;
  line-height:1.25;
  text-align:center;
  white-space:normal;
}
.delivery-page-shell .delivery-queue-card .delivery-queue-actionbar .delivery-row-actions > .btn:not(.primary):not(.danger):not(.delivery-payment-complete){
  background:#fff7f1 !important;
  border:1px solid #ffd3bc !important;
  color:#a95b32 !important;
}
.delivery-page-shell .delivery-queue-card .delivery-queue-actionbar .delivery-row-actions > .btn:not(.primary):not(.danger):not(.delivery-payment-complete):hover{
  background:#fff1e6 !important;
  border-color:#ffc6a8 !important;
  color:#a05229 !important;
}
.delivery-page-shell .delivery-queue-card .delivery-queue-actionbar .delivery-row-actions > .btn.primary{
  /* Keep the original filled orange payment button unchanged. */
  opacity:1;
}
.delivery-page-shell .delivery-queue-card .delivery-queue-actionbar .delivery-row-actions > .delivery-payment-complete{
  background:#eaf6f0 !important;
  border:1px solid #c5e4d4 !important;
  color:#328064 !important;
  opacity:1 !important;
  box-shadow:none !important;
  cursor:not-allowed !important;
  pointer-events:none;
  font-weight:700;
}
.delivery-page-shell .delivery-queue-card .delivery-queue-actionbar .delivery-row-actions > .delivery-payment-complete .icon{width:17px;height:17px}
.delivery-page-shell .delivery-queue-card .delivery-queue-actionbar .delivery-row-actions > .btn:only-child{grid-column:1/-1 !important}
.delivery-page-shell .delivery-queue-card .delivery-queue-actionbar .delivery-row-actions > .btn:nth-child(3):last-child{grid-column:1/-1 !important}
@media(min-width:761px) and (max-width:1120px){
 .delivery-page-shell .delivery-queue-card .delivery-queue-actionbar{max-width:380px;justify-self:end}
}
@media(max-width:760px){
 .delivery-page-shell .delivery-queue-card .delivery-queue-actionbar{max-width:none;justify-self:stretch}

 .delivery-page-shell .delivery-queue-card .delivery-queue-main{
  grid-template-columns:minmax(96px,116px) minmax(0,1fr) !important;
  grid-template-areas:'order summary' 'customer customer' 'address address' !important;
  column-gap:8px;
 }
 .delivery-page-shell .delivery-queue-card .delivery-queue-order{min-width:96px;align-content:start}
 .delivery-page-shell .delivery-queue-card .delivery-queue-order strong{
  white-space:nowrap !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
 }
 .delivery-page-shell .delivery-queue-card .delivery-queue-summary{min-width:0;justify-content:flex-end;text-align:right}
 .delivery-page-shell .delivery-queue-card .delivery-queue-actionbar .delivery-row-actions{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 }
 .delivery-page-shell .delivery-queue-card .delivery-queue-actionbar .delivery-row-actions > .btn{min-height:46px;font-size:12px;padding:8px 6px}
}
@media(max-width:350px){
 .delivery-page-shell .delivery-queue-card .delivery-queue-main{
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-areas:'order' 'summary' 'customer' 'address' !important;
  row-gap:6px;
 }
 .delivery-page-shell .delivery-queue-card .delivery-queue-summary{justify-content:flex-start;text-align:left}
}
