/* Modal base */
.woocommerce_thankyou_cash_modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal content */
.woocommerce_thankyou_cash_modal_content {
  position: relative;
  background-color: #fff;
  width: 70%;
  min-width: 800px;
  max-width: 1200px;
  height: auto;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation-name: animatetop;
  animation-duration: 0.3s;
  overflow: hidden;
  box-sizing: border-box;
}

/* Animation */
@keyframes animatetop {
  from { transform: translateY(-300px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Header */
.woocommerce_thankyou_cash_modal_header {
  max-height: 60px;
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  font-size: 18px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}

/* Body */
.woocommerce_thankyou_cash_modal_body {
  padding: 20px 25px;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

/* Footer */
.woocommerce_thankyou_cash_modal_footer {
  max-height: 60px;
  padding: 10px 20px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

/* WooCommerce form-row ajuste */
.woocommerce_thankyou_cash_modal_body .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.woocommerce_thankyou_cash_modal_body .form-row label {
  margin-bottom: 5px;
  font-weight: 600;
}

.woocommerce_thankyou_cash_modal_body .form-row input {
  width: 100%;
  box-sizing: border-box;
  text-align: left; /* textos dentro dos inputs ficam à esquerda */
}

/* Responsividade */
@media (max-width: 1000px) {
  .woocommerce_thankyou_cash_modal_content {
    width: 90%;
    min-width: auto;
  }
}

@media (max-width: 500px) {
  .woocommerce_thankyou_cash_modal_content {
    width: 95%;
  }
}

.woocommerce_thankyou_cash_modal_body .form-row.radio-group {
  display: flex;
  flex-direction: row; /* mantém em linha */
  gap: 20px;           /* espaço entre opções */
}

.woocommerce_thankyou_cash_modal_body .form-row.radio-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0;    /* remove espaçamento extra do label */
}

.woocommerce_thankyou_cash_modal_body .form-row.radio-group label input[type="radio"] {
  margin-right: 5px;   /* espaço entre radio e texto */
}

.woocommerce_thankyou_cash_modal_body .form-row button {
    width: auto;              /* tamanho baseado no conteúdo */
    height: auto;             
    padding: 0.5em 1em;       /* deixa o botão com altura e largura confortável */
    font-size: 14px;          
    line-height: normal;      
    align-self: flex-start;   /* não estica */
    cursor: pointer;
}

/* POS Admin Actions Styling */
.pos-admin-actions {
    margin: 20px 0 !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pos-admin-actions h3 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    color: #495057 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.pos-admin-actions p {
    margin-bottom: 15px !important;
    color: #6c757d !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.pos-admin-actions .button-primary {
    background-color: #007cba !important;
    border-color: #007cba !important;
    color: white !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    font-weight: 500 !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.pos-admin-actions .button-primary:hover {
    background-color: #005a87 !important;
    border-color: #005a87 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.pos-admin-actions .button-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    font-weight: 500 !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.pos-admin-actions .button-secondary:hover {
    background-color: #545b62 !important;
    border-color: #545b62 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.pos-admin-actions .order-info {
    margin-top: 10px !important;
    font-size: 12px !important;
    color: #868e96 !important;
}