
/* V33 — unified checkout / invoice modal.
   Fixes the automation-page checkout so it matches the approved site UI. */

.modal-card.mp-camera-checkout{
  width:min(820px,calc(100vw - 36px))!important;
  max-height:min(92vh,820px)!important;
  overflow:auto!important;
  border-radius:16px!important;
  background:#fff!important;
}

.mp-camera-checkout .modal-head{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  background:#fff!important;
  padding:16px 18px!important;
}

.mp-camera-checkout .modal-head h2{
  font-size:24px!important;
  line-height:1.15!important;
  letter-spacing:-.02em!important;
}

.mp-camera-checkout .invoice-form{
  padding:16px 18px 18px!important;
  gap:12px!important;
}

.mp-camera-checkout .tabs{
  gap:8px!important;
}

.mp-camera-checkout .tabs button{
  min-height:42px!important;
  border-radius:10px!important;
}

.mp-camera-checkout .grid2{
  gap:10px!important;
}

.mp-camera-checkout .invoice-form label{
  display:block!important;
  font-size:11px!important;
  font-weight:800!important;
  color:#596571!important;
}

.mp-camera-checkout .invoice-form label>span{
  display:block!important;
  margin:0 0 5px!important;
}

.mp-camera-checkout .invoice-form input:not([type="checkbox"]),
.mp-camera-checkout .invoice-form select{
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  border:1px solid #d7dee4!important;
  border-radius:9px!important;
  padding:0 11px!important;
  background:#fff!important;
  color:#171a1f!important;
  font:inherit!important;
  outline:none!important;
}

.mp-camera-checkout .invoice-form input:not([type="checkbox"]):focus,
.mp-camera-checkout .invoice-form select:focus{
  border-color:#8da7c7!important;
  box-shadow:0 0 0 3px rgba(47,111,237,.10)!important;
}

.mp-camera-checkout .invoice-offer{
  display:flex!important;
  align-items:flex-start!important;
  gap:9px!important;
  width:100%!important;
  padding:10px 11px!important;
  border:1px solid #dfe5ea!important;
  border-radius:10px!important;
  background:#f8fafb!important;
  color:#37414b!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.4!important;
  cursor:pointer!important;
}

.mp-camera-checkout .invoice-offer input[type="checkbox"]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 18px!important;
  accent-color:#171a1f!important;
  border:0!important;
  border-radius:4px!important;
  box-shadow:none!important;
}

.mp-camera-checkout .invoice-offer span{
  display:block!important;
  margin:0!important;
}

.mp-camera-checkout .invoice-error{
  margin:0!important;
}

.mp-camera-checkout .invoice-status,
.mp-camera-checkout .invoice-send-status{
  min-height:18px!important;
  margin:0!important;
  font-size:10.5px!important;
  line-height:1.4!important;
}

.mp-camera-checkout .invoice-status{color:#68737e!important}
.mp-camera-checkout .invoice-send-status{color:#247552!important;font-weight:700!important}

.mp-camera-checkout .invoice-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  margin-top:0!important;
}

.mp-camera-checkout .invoice-actions .btn{
  width:100%!important;
  min-height:42px!important;
}

.mp-camera-checkout .invoice-saved{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  width:100%!important;
  padding:11px 12px!important;
  border:1px solid #dbe4ea!important;
  border-radius:11px!important;
  background:#f7f9fb!important;
}

.mp-camera-checkout .invoice-saved[hidden]{
  display:none!important;
}

.mp-camera-checkout .invoice-saved>div{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:2px!important;
  min-width:0!important;
}

.mp-camera-checkout .invoice-saved small{
  display:block!important;
  color:#77828d!important;
  font-size:9.5px!important;
  line-height:1.25!important;
}

.mp-camera-checkout .invoice-saved b{
  display:block!important;
  color:#20262d!important;
  font-size:12px!important;
  line-height:1.35!important;
  white-space:normal!important;
}

.mp-camera-checkout .invoice-saved span{
  display:block!important;
  color:#68737e!important;
  font-size:10.5px!important;
  line-height:1.35!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.mp-camera-checkout .invoice-saved .btn{
  min-height:36px!important;
  padding:0 13px!important;
  font-size:11px!important;
  white-space:nowrap!important;
}

.mp-camera-checkout .btn:disabled{
  opacity:.45!important;
  cursor:not-allowed!important;
}

@media(max-width:620px){
  .modal-card.mp-camera-checkout{
    width:calc(100vw - 20px)!important;
    max-height:calc(100dvh - 20px)!important;
    border-radius:14px!important;
  }
  .mp-camera-checkout .modal-head{
    padding:14px!important;
  }
  .mp-camera-checkout .modal-head h2{
    font-size:21px!important;
  }
  .mp-camera-checkout .invoice-form{
    padding:13px!important;
  }
  .mp-camera-checkout .grid2,
  .mp-camera-checkout .invoice-actions,
  .mp-camera-checkout .invoice-saved{
    grid-template-columns:1fr!important;
  }
  .mp-camera-checkout .invoice-form input:not([type="checkbox"]),
  .mp-camera-checkout .invoice-form select{
    height:46px!important;
    min-height:46px!important;
    font-size:16px!important;
  }
  .mp-camera-checkout .invoice-saved .btn{
    width:100%!important;
  }
}
