/* Ajustes exclusivos para el panel cliente en móvil/PWA y tableta compacta. */
@media (max-width: 768px), (pointer: coarse) and (max-device-width: 900px) {
  #root [data-t360-client-title] {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 14px !important;
  }
  #root #root [data-t360-client-title] > div:first-child {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
  }
  #root #root [data-t360-client-title] > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  #root #root [data-t360-client-title] > [data-t360-panel-slot] {
    grid-column: 1 / -1 !important;
    grid-row: 2;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
  }
  #root #root [data-t360-client-title] > #t360-logout {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }
  #root #root #root [data-t360-client-title] > #t360-logout > button {
    min-height: 38px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    background: #e91e63 !important;
    color: #fff !important;
    font: 700 12px/1 Inter, Arial, sans-serif !important;
    white-space: nowrap;
  }
  #root [data-t360-operation-actions] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px !important;
    width: 100%;
    margin: 12px 0 16px !important;
  }
  #root #root [data-t360-operation-actions] > * {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    min-height: 44px !important;
    justify-content: center !important;
    text-align: center;
    white-space: nowrap;
  }
  #root #root [data-t360-operation-actions] > span { grid-column: 1 / -1; }
  .t360-remove-product-photo {
    position: absolute !important;
    display: grid !important;
    place-items: center !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 100 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border: 1px solid #888 !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, .96) !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}
