/**************************************************************/
/*                   ICONS
/**************************************************************/
#admin-menu a.sereny {
  background-image: url("/assets/plugin_assets/redmine_sereny/sereny-589ec653.png");
  background-repeat: no-repeat;
  padding-left: 20px;
  background-size: 16px 16px;
}

#sereny_settings_invoice_days_before {
  max-width: 122px;
}

#menu-nfse {
  display: none;
  position: absolute;
}

#menu-nfse.visible {
  display: block;
}

#menu-nfse ul {
  z-index: 39;
  border: 1px solid #ccc;
  width: 100px;
  padding-left: 0;
}

#menu-nfse li {
  background: white;
  list-style: none;
  padding: 2px 8px 2px 10px;
  border-radius: 2px;
}

.icon-charge-add {
  background-image: url("/assets/plugin_assets/redmine_sereny/charge_add-d835c22c.png");
}

.icon-nfse {
  background-image: url("/assets/plugin_assets/redmine_sereny/world_go-e3d58feb.png");
}

.icon-nfse.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
}

table.charges .total {
  text-align: right;
}

table.charges td.total {
  padding-right: 4px;
}

table.list.charges tr.overdue,
table.list.charges tr.overdue:hover,
table.list.charges tr.overdue a,
table.list.charges tr.overdue a:hover {
  color: #900;
}

table.list.charge_history td {
  text-align: left;
}

table.list.charge_history td:first-child {
  width: 140px;
}

#user_repasse_account {
  width: 90%;
}

#charge_product_id {
  width: 60% !important;
}

#charge_message {
  width: 60% !important;
}

#cancellation_number {
  width: 200px;
}

#nfse_error {
  width: 100% !important;
}

.wiki #charge_message {
  width: 100% !important;
}

.charge_status_new {
  background-color: #dadd34 !important;
}

.charge_status_paid {
  background-color: #339966 !important;
}

.charge_status_canceled {
  background-color: #d3341f !important;
}

table.nfse_cancellations {
 width: 100%;
}

table.nfse_cancellations h3 {
  padding: 0;
  margin: 0;
}

table.nfse_cancellations td {
  vertical-align: middle;
}

table.nfse_cancellations td:last-child {
  text-align: right;
}

table.nfse_cancellations td:last-child > a {
  padding-top: 2px;
  padding-bottom: 2px;
}

table.deals.index.total {
  width: 100%;
}

.deals .total .title,
.deals .total :not(.deals-sum:last-child) {
  text-align: left;
}

.deals .total .deals-sum .query-totals {
  text-align: right;
  text-align: right;
  margin-top: 0;
}

#sereny_settings_form .tabular:not(.template) label {
  width: 225px;
  padding-right: 5px;
}

/**************************************************************/
/*                   CHECKOUT MODAL
/**************************************************************/
:root {
  --checkout-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --checkout-font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --checkout-color-primary: #999ffd;
  --checkout-color-primary-light: #dedeff;
  --checkout-color-primary-gray: #f3e5f5;
  --checkout-color-success: #4CAF50;
  --checkout-color-danger: #e53935;
  --checkout-color-warning: #E65100;
  --checkout-color-warning-light: #FFF3E0;
  --checkout-color-link: #1976D2;
  --checkout-color-gray-50: #F8FAFC;
  --checkout-color-gray-100: #F1F5F9;
  --checkout-color-gray-200: #E2E8F0;
  --checkout-color-gray-600: #475569;
  --checkout-color-gray-700: #334155;
  --checkout-color-gray-900: #0F172A;
}

.checkout {
  font-family: var(--checkout-font-body);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.checkout-button {
  font-family: var(--checkout-font-display);
  width: 100%;
  padding: 0.75rem;
  border: none;
  color: white;
  background-color: var(--checkout-color-primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.checkout-header {
  padding: 20px;
  background-color: var(--checkout-color-primary);
  color: white;
}

.checkout-header-container {
  display: flex;
  align-items: center;
}

.checkout-header-container > img {
  width: 48px;
  height: 48px;
  margin-right: 10px;
}

.checkout-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 28px;
  text-align: center;
  color: var(--checkout-color-gray-700);
}

.checkout-error-icon {
  font-size: 52px;
  color: var(--checkout-color-danger);
}

.checkout-modal {
  position: fixed;
  inset: 0px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  visibility: visible;
  transition: 0.3s;
}

.checkout-content {
  padding: 0 1.5rem 1rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1rem 0;
}

.checkout-modal-header {
  position: sticky;
  top: 0;
  background-color: var(--checkout-color-primary);
  color: white;
  padding: 0 20px;
  border-bottom: 1px solid var(--checkout-color-primary-gray);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.checkout-modal-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkout-modal-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--checkout-color-gray-900);
  margin: 0;
}

.checkout-message {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 420px;
  padding: 2.25rem 1rem;
  color: var(--checkout-color-gray-700);
  text-align: center;
  gap: 0.8rem;
  background: #f6f7fc;
  border: 1px solid #d8ddf4;
  border-radius: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.checkout-message i {
  font-size: 66px;
}

.checkout-message .checkout-message-title {
  margin: 0;
  font-family: var(--checkout-font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #24325d;
}

.checkout-message p {
  margin: 0;
  color: #334155;
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 36ch;
}

#checkout-success i {
  color: var(--checkout-color-success);
}

#checkout-failed i {
  color: var(--checkout-color-danger);
}

@media (max-width: 768px) {
  .checkout-message {
    min-height: 340px;
    padding: 1.75rem 1rem;
  }

  .checkout-message i {
    font-size: 56px;
  }

  .checkout-message p {
    font-size: 0.98rem;
  }
}

.checkout-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.checkout-qrcode-image {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid var(--checkout-color-gray-200);
  margin-bottom: 1rem;
}

.checkout-qrcode-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--checkout-color-warning-light);
  color: var(--checkout-color-warning);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.checkout-qrcode-instruction {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
  color: var(--checkout-color-primary);
}

.checkout-card-form {
  align-items: stretch;
  justify-content: flex-start;
}

.checkout-card-intro {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  color: var(--checkout-color-primary-light);
  font-size: 0.85rem;
  font-weight: 600;
}

#checkout-card-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.checkout-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.checkout-card-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.checkout-card-field label {
  color: var(--checkout-color-gray-900);
  font-size: 0.95rem;
  font-weight: 600;
}

.checkout-card-input {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 0.9rem;
  border: 1px solid #d7def0;
  border-radius: 10px;
  background: #fff;
  color: var(--checkout-color-gray-900);
  font-size: 1rem;
  line-height: 1.2;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-card-input:focus {
  outline: none;
  border-color: var(--checkout-color-link);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}

.checkout-card-submit {
  margin-top: 0.25rem;
}

.checkout-card-submit i {
  margin-right: 0.4rem;
}

.checkout-card-form + .checkout-info,
.checkout-grid-card .checkout-info {
  gap: 1rem;
}

.checkout-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.checkout-info-status {
  text-align: center;
  margin-bottom: 1rem;
  background: rgba(255, 107, 0, 0.05);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

.checkout-info-status-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.checkout-info-status-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--checkout-color-primary) 0%, var(--checkout-color-primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-info-status-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--checkout-color-gray-700);
  margin: 0;
}

.checkout-info-status-icon i {
  color: white;
  font-size: 16px;
}

.checkout-info-status-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--checkout-color-primary);
  margin-bottom: 0.75rem;
}

.checkout-info-details {
  background: var(--checkout-color-gray-50);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--checkout-color-gray-200);
  text-align: left;
}

.checkout-info-details-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--checkout-color-gray-700);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.checkout-info-details-title i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
  color: var(--checkout-color-primary);
}

.checkout-info-details-product {
  margin-bottom: 0.6rem;
}

.checkout-info-details-product-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--checkout-color-gray-900);
  margin-bottom: 0.5rem;
}
.checkout-info-details-product-value {
  font-size: 0.75rem;
  color: var(--checkout-color-gray-600);
  margin-bottom: 0.5rem;
}

.checkout-info-pix {
  flex: 1;
}

.checkout-info-pix-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--checkout-color-gray-700);
  font-size: 0.8rem;
}

.checkout-info-pix-label i {
  color: var(--checkout-color-primary);
}

.checkout-info-pix-textarea {
  width: 100%;
  height: 60px;
  padding: 0.5rem;
  border: 2px solid var(--checkout-color-gray-200);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  resize: none;
  background: var(--checkout-color-gray-50);
  color: var(--checkout-color-gray-700);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.checkout-info-pix-copy {
  width: 100%;
  padding: 0.75rem;
  border: none;
  color: white;
  background-color: var(--checkout-color-primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.checkout-box {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.checkout-header .checkout-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-header .checkout-close {
  background: var(--);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-info-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--checkout-color-gray-700);
  font-size: 0.65rem;
  font-weight: 400;
}

.checkout-info-security i {
  color: var(--checkout-color-success);
}

.checkout-info-security-link {
  color: var(--checkout-color-link);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 400;
  margin-top: 0.1rem;
}

.checkout-footer {
  background: var(--checkout-color-primary-gray);
  color: var(--checkout-color-gray-700);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  border-top: 1px solid var(--checkout-color-gray-200);
  margin-top: auto;
}

.checkout-footer-container a {
  color: var(--checkout-color-link);
  text-decoration: none;
  font-weight: 600;
}

.checkout-footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    text-align: center;
  }
  .checkout-card-row {
    grid-template-columns: 1fr !important;
  }
  .checkout-qrcode-image {
    width: 160px !important;
    height: 160px !important;
  }
  .checkout-info-status-title {
    font-size: 0.7rem !important;
  }
  .checkout-info-status-value {
    font-size: 1.1rem !important;
  }
  .checkout-info-status-icon {
    width: 22px !important;
    height: 22px !important;
  }
  .checkout-info-details {
    padding: 0.5rem !important;
    font-size: 0.65rem !important;
  }
  .checkout-info-details > div {
    font-size: 0.6rem !important;
  }
  .checkout-info-details > div > div {
    font-size: 0.55rem !important;
  }
}
@media (min-width: 769px) {
  .checkout-box {
    max-width: 900px !important;
  }
}

/* Card checkout theme overrides */
body.checkout-card {
  background: linear-gradient(180deg, #cbcce0 0%, #c2c5dc 100%);
}

body.checkout-card .checkout-header {
  padding: 0.75rem 1.5rem;
  background: #4656bf;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

body.checkout-card .checkout-header-container {
  width: min(1060px, 100%);
  margin: 0 auto;
  justify-content: space-between;
  gap: 1rem;
}

body.checkout-card .checkout-header-container > img {
  width: 30px;
  height: 30px;
  margin-right: 0.65rem;
  border-radius: 999px;
}

body.checkout-card .checkout-header-container > h1 {
  font-family: var(--checkout-font-display);
  margin: 0;
  margin-right: auto;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

body.checkout-card .checkout-header-nav {
  font-family: var(--checkout-font-display);
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #e9ecff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

body.checkout-card .checkout-header-help i {
  font-size: 0.95rem;
}

body.checkout-card .checkout-modal {
  position: static;
  inset: auto;
  background: transparent;
  padding: 1.4rem 1rem;
  align-items: stretch;
  z-index: auto;
}

body.checkout-card .checkout-box {
  width: min(1060px, 100%);
  max-width: 1040px;
  max-height: none;
  border-radius: 14px;
  box-shadow: 0 26px 40px rgba(37, 43, 83, 0.18);
  background: #f3f4fb;
  overflow: hidden;
  border: 1px solid #d0d5f4;
}

body.checkout-card .checkout-modal-header {
  position: relative;
  top: auto;
  padding: 0.85rem 1rem;
  background: #eef0ff;
  border-bottom: 1px solid #d7dbf2;
  border-radius: 0;
}

body.checkout-card .checkout-modal-header h3 {
  font-family: var(--checkout-font-display);
  margin: 0;
  color: #23306d;
  font-size: 1.45rem;
  font-weight: 600;
}

body.checkout-card .checkout-content {
  padding: 0.95rem;
  border-radius: 0 0 14px 14px;
}

body.checkout-card #checkout-payment.checkout-grid-card {
  align-items: start;
  gap: 0;
  padding: 0;
  grid-template-columns: 1.65fr 1.1fr;
}

body.checkout-card .checkout-card-form {
  align-items: stretch;
  justify-content: flex-start;
  background: #f6f7fc;
  border-right: 1px solid #d4d8ef;
  border-radius: 0 0 0 12px;
  padding: 1.45rem;
  box-shadow: none;
}

body.checkout-card .checkout-card-title {
  font-family: var(--checkout-font-display);
  margin: 0;
  color: #10172f;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

body.checkout-card .checkout-card-subtitle {
  margin: 0.45rem 0 1.1rem;
  color: #4e5674;
  font-size: 0.86rem;
  font-weight: 400;
}

body.checkout-card .checkout-card-intro {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  color: #3d4568;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

body.checkout-card .checkout-card-intro i {
  color: #6070da;
  margin-top: 0.1rem;
}

body.checkout-card #checkout-card-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

body.checkout-card .checkout-card-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  margin: 0;
}

body.checkout-card .checkout-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
}

body.checkout-card .checkout-card-field label {
  display: block;
  margin: 0;
  color: #202742;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  float: none;
  width: auto;
}

body.checkout-card #checkout-card-form .checkout-card-input,
body.checkout-card #checkout-card-form input.checkout-card-input,
body.checkout-card #checkout-card-form input.checkout-card-input[type="text"] {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0.45rem 0.75rem !important;
  border: 1px solid #c5cbe5 !important;
  border-radius: 8px !important;
  background: #f9f9ff !important;
  color: #0f1630 !important;
  font-family: var(--checkout-font-body) !important;
  font-size: 0.82rem !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

body.checkout-card #checkout-card-form .checkout-card-input::placeholder {
  color: #acb3cf;
}

body.checkout-card #checkout-card-form .checkout-card-input:focus,
body.checkout-card #checkout-card-form input.checkout-card-input:focus {
  outline: none;
  border-color: #6675dd !important;
  box-shadow: 0 0 0 3px rgba(102, 117, 221, 0.2) !important;
}

body.checkout-card #checkout-card-form .checkout-card-input.checkout-card-input-error,
body.checkout-card #checkout-card-form input.checkout-card-input.checkout-card-input-error,
body.checkout-card #checkout-card-form input.checkout-card-input.checkout-card-input-error[type="text"] {
  border-color: #d13a35 !important;
  box-shadow: 0 0 0 3px rgba(209, 58, 53, 0.16) !important;
  background: #fff9f9 !important;
}

body.checkout-card .checkout-card-save {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #4f5772;
  font-size: 0.8rem;
}

body.checkout-card .checkout-card-save input {
  width: 14px;
  height: 14px;
  margin: 0;
}

body.checkout-card #checkout-card-error {
  display: none;
  color: #b42318;
  font-weight: 600;
  margin: 0;
}

body.checkout-card .checkout-card-submit {
  margin: 0.25rem 0 0;
  min-height: 42px;
  padding: 0.56rem 0.85rem;
  border-radius: 8px;
  background: #4b5ac7;
  box-shadow: 0 10px 22px rgba(67, 79, 167, 0.28);
  font-size: 0.95rem;
  font-weight: 600;
}

body.checkout-card .checkout-card-submit:hover {
  background: #414fb6;
}

body.checkout-card .checkout-card-submit i {
  margin-right: 0.45rem;
}

body.checkout-card .checkout-card-trust {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e5f7;
  flex-wrap: wrap;
}

body.checkout-card .checkout-card-trust > span {
  color: #79809a;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

body.checkout-card .checkout-card-trust i {
  color: #8a92b4;
}

body.checkout-card .checkout-info {
  background: #ececff;
  padding: 1.4rem 1.2rem;
  gap: 1rem;
  justify-content: flex-start;
  border-radius: 0 0 12px 0;
}

body.checkout-card .checkout-info-summary {
  background: transparent;
  border: 1px solid #d2d7f1;
  border-radius: 12px;
  padding: 1rem;
  color: #1d2440;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.checkout-card .checkout-info-summary-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: #1d2440;
}

body.checkout-card .checkout-info-summary-title i {
  color: #5867cf;
  font-size: 0.95rem;
}

body.checkout-card .checkout-info-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #2c3350;
}

body.checkout-card .checkout-info-summary-row-main strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

body.checkout-card .checkout-info-summary-row-main small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #636b8a;
}

body.checkout-card .checkout-info-summary-row > span:last-child {
  font-weight: 700;
  white-space: nowrap;
}

body.checkout-card .checkout-info-summary-total {
  margin-top: 0.35rem;
  background: #d8dcff;
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #24317d;
  font-size: 0.9rem;
}

body.checkout-card .checkout-info-summary-total strong {
  font-family: var(--checkout-font-display);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

body.checkout-card .checkout-info-summary-total span {
  font-family: var(--checkout-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

body.checkout-card .checkout-info-security {
  margin-top: 0.85rem;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  flex-wrap: nowrap;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #d4d9f5;
  border-left: 4px solid #5664cb;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  gap: 0.55rem;
}

body.checkout-card .checkout-info-security > img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

body.checkout-card .checkout-info-security-content {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

body.checkout-card .checkout-info-security-content strong {
  color: #3f4cae;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

body.checkout-card .checkout-info-security-content span {
  color: #5d6481;
  font-size: 0.74rem;
  font-style: italic;
}

body.checkout-card .checkout-footer {
  background: transparent;
  border-top: 0;
  padding: 0.85rem 0 1.1rem;
  color: #69718f;
  font-size: 0.68rem;
}

body.checkout-card .checkout-footer-container {
  width: min(1060px, 100%);
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

body.checkout-card .checkout-footer-divider {
  display: none;
}

@media (max-width: 768px) {
  body.checkout-card .checkout-header {
    padding: 0.75rem 1rem;
  }

  body.checkout-card .checkout-header-container {
    flex-wrap: wrap;
  }

  body.checkout-card .checkout-header-container > h1 {
    font-size: 1.55rem;
  }

  body.checkout-card .checkout-header-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.85rem;
    font-size: 0.62rem;
  }

  body.checkout-card .checkout-modal {
    padding: 0.9rem;
  }

  body.checkout-card #checkout-payment.checkout-grid-card {
    grid-template-columns: 1fr;
  }

  body.checkout-card .checkout-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.checkout-card .checkout-card-form {
    padding: 1.1rem;
    border-right: 0;
    border-bottom: 1px solid #d5d8f0;
  }

  body.checkout-card .checkout-card-title {
    font-size: 1.72rem;
  }

  body.checkout-card .checkout-info {
    padding: 1rem;
  }

  body.checkout-card .checkout-card-row .checkout-card-field:last-child {
    grid-column: span 2;
  }

  body.checkout-card .checkout-info-summary-total strong {
    font-size: 1.35rem;
  }

  body.checkout-card .checkout-info-summary-total span {
    font-size: 1.45rem;
  }

  body.checkout-card .checkout-info-security {
    flex-wrap: wrap;
  }
}

/* Pix checkout theme overrides (same visual pattern as card) */
body.checkout-pix {
  background: linear-gradient(180deg, #cbcce0 0%, #c2c5dc 100%);
}

body.checkout-pix .checkout-header {
  padding: 0.75rem 1.5rem;
  background: #4656bf;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

body.checkout-pix .checkout-header-container {
  width: min(1060px, 100%);
  margin: 0 auto;
  justify-content: space-between;
  gap: 1rem;
}

body.checkout-pix .checkout-header-container > img {
  width: 30px;
  height: 30px;
  margin-right: 0.65rem;
  border-radius: 999px;
}

body.checkout-pix .checkout-header-container > h1 {
  font-family: var(--checkout-font-display);
  margin: 0;
  margin-right: auto;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

body.checkout-pix .checkout-header-nav {
  font-family: var(--checkout-font-display);
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #e9ecff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

body.checkout-pix .checkout-modal {
  position: static;
  inset: auto;
  background: transparent;
  padding: 1.4rem 1rem;
  align-items: stretch;
  z-index: auto;
}

body.checkout-pix .checkout-box {
  width: min(1060px, 100%);
  max-width: 1040px;
  max-height: none;
  border-radius: 14px;
  box-shadow: 0 26px 40px rgba(37, 43, 83, 0.18);
  background: #f3f4fb;
  overflow: hidden;
  border: 1px solid #d0d5f4;
}

body.checkout-pix .checkout-modal-header {
  position: relative;
  top: auto;
  padding: 0.85rem 1rem;
  background: #eef0ff;
  border-bottom: 1px solid #d7dbf2;
  border-radius: 0;
}

body.checkout-pix .checkout-modal-header h3 {
  font-family: var(--checkout-font-display);
  margin: 0;
  color: #23306d;
  font-size: 1.45rem;
  font-weight: 600;
}

body.checkout-pix .checkout-content {
  padding: 0.95rem;
  border-radius: 0 0 14px 14px;
}

body.checkout-pix #checkout-payment.checkout-grid-card {
  align-items: start;
  gap: 0;
  padding: 0;
  grid-template-columns: 1.65fr 1.1fr;
}

body.checkout-pix .checkout-pix-form {
  align-items: stretch;
  justify-content: flex-start;
  background: #f6f7fc;
  border-right: 1px solid #d4d8ef;
  border-radius: 0 0 0 12px;
  padding: 1.45rem;
  box-shadow: none;
}

body.checkout-pix .checkout-pix-title {
  font-family: var(--checkout-font-display);
  margin: 0;
  color: #10172f;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

body.checkout-pix .checkout-pix-subtitle {
  margin: 0.45rem 0 1.1rem;
  color: #4e5674;
  font-size: 0.86rem;
  font-weight: 400;
}

body.checkout-pix .checkout-pix-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  width: 100%;
}

body.checkout-pix .checkout-qrcode-image {
  margin: 0 auto;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #c9d0ed;
  background: #ffffff;
  box-shadow: none;
}

body.checkout-pix .checkout-qrcode-image-tag {
  width: 170px;
  height: 170px;
  display: block;
  border-radius: 8px;
}

body.checkout-pix .checkout-qrcode-timer {
  margin: 0 auto;
  background: #fff4e8;
  border: 1px solid #f3d8be;
  color: #b45000;
  font-size: 0.76rem;
  font-weight: 600;
}

body.checkout-pix .checkout-info-pix {
  width: 100%;
  margin-top: 0.4rem;
}

body.checkout-pix .checkout-pix-copied {
  visibility: hidden;
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  color: #4b5ac7;
  font-weight: 600;
}

body.checkout-pix .checkout-info-pix-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #202742;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.checkout-pix .checkout-info-pix-label i {
  color: #5c6ad2;
}

body.checkout-pix .checkout-info-pix-textarea {
  width: 100%;
  height: 78px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #c5cbe5;
  border-radius: 8px;
  background: #f9f9ff;
  color: #0f1630;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.3;
  resize: none;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}

body.checkout-pix #pix-code-btn.checkout-button {
  margin: 0;
  min-height: 42px;
  padding: 0.56rem 0.85rem;
  border-radius: 8px;
  background: #4b5ac7;
  box-shadow: 0 10px 22px rgba(67, 79, 167, 0.28);
  font-family: var(--checkout-font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

body.checkout-pix #pix-code-btn.checkout-button:hover {
  background: #414fb6;
}

body.checkout-pix .checkout-info {
  background: #ececff;
  padding: 1.4rem 1.2rem;
  gap: 1rem;
  justify-content: flex-start;
  border-radius: 0 0 12px 0;
}

body.checkout-pix .checkout-info-summary {
  background: transparent;
  border: 1px solid #d2d7f1;
  border-radius: 12px;
  padding: 1rem;
  color: #1d2440;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.checkout-pix .checkout-info-summary-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: #1d2440;
}

body.checkout-pix .checkout-info-summary-title i {
  color: #5867cf;
  font-size: 0.9rem;
}

body.checkout-pix .checkout-info-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #2c3350;
}

body.checkout-pix .checkout-info-summary-row-main strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

body.checkout-pix .checkout-info-summary-row-main small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #636b8a;
}

body.checkout-pix .checkout-info-summary-row > span:last-child {
  font-weight: 700;
  white-space: nowrap;
}

body.checkout-pix .checkout-info-summary-total {
  margin-top: 0.35rem;
  background: #d8dcff;
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #24317d;
  font-size: 0.9rem;
}

body.checkout-pix .checkout-info-summary-total strong {
  font-family: var(--checkout-font-display);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

body.checkout-pix .checkout-info-summary-total span {
  font-family: var(--checkout-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

body.checkout-pix .checkout-info-security {
  margin-top: 0.85rem;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  flex-wrap: nowrap;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #d4d9f5;
  border-left: 4px solid #5664cb;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  gap: 0.55rem;
}

body.checkout-pix .checkout-info-security > img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

body.checkout-pix .checkout-info-security-content {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

body.checkout-pix .checkout-info-security-content strong {
  color: #3f4cae;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

body.checkout-pix .checkout-info-security-content span {
  color: #5d6481;
  font-size: 0.74rem;
  font-style: italic;
}

body.checkout-pix .checkout-footer {
  background: transparent;
  border-top: 0;
  padding: 0.85rem 0 1.1rem;
  color: #69718f;
  font-size: 0.68rem;
}

body.checkout-pix .checkout-footer-container {
  width: min(1060px, 100%);
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

body.checkout-pix .checkout-footer-divider {
  display: none;
}

@media (max-width: 768px) {
  body.checkout-pix .checkout-header {
    padding: 0.75rem 1rem;
  }

  body.checkout-pix .checkout-header-container {
    flex-wrap: wrap;
  }

  body.checkout-pix .checkout-header-container > h1 {
    font-size: 1.55rem;
  }

  body.checkout-pix .checkout-header-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.85rem;
    font-size: 0.62rem;
  }

  body.checkout-pix .checkout-modal {
    padding: 0.9rem;
  }

  body.checkout-pix #checkout-payment.checkout-grid-card {
    grid-template-columns: 1fr;
  }

  body.checkout-pix .checkout-pix-form {
    padding: 1.1rem;
    border-right: 0;
    border-bottom: 1px solid #d5d8f0;
  }

  body.checkout-pix .checkout-pix-title {
    font-size: 1.55rem;
  }

  body.checkout-pix .checkout-pix-qr-wrap {
    flex-direction: column;
    gap: 0.65rem;
  }

  body.checkout-pix .checkout-qrcode-image-tag {
    width: 150px;
    height: 150px;
  }

  body.checkout-pix .checkout-info {
    padding: 1rem;
    border-radius: 0 0 12px 12px;
  }

  body.checkout-pix .checkout-info-security {
    flex-wrap: wrap;
  }
}

/* Final normalization: PIX must reuse the exact CARD shell */
body.checkout-pix.checkout-shared .checkout-header {
  padding: 0.75rem 1.5rem;
  background: #4656bf;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

body.checkout-pix.checkout-shared .checkout-header-container {
  width: min(1060px, 100%);
  margin: 0 auto;
  justify-content: space-between;
  gap: 1rem;
}

body.checkout-pix.checkout-shared .checkout-header-container > img {
  width: 30px;
  height: 30px;
  margin-right: 0.65rem;
  border-radius: 999px;
}

body.checkout-pix.checkout-shared .checkout-header-container > h1 {
  font-family: var(--checkout-font-display);
  margin: 0;
  margin-right: auto;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

body.checkout-pix.checkout-shared .checkout-header-nav {
  font-family: var(--checkout-font-display);
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #e9ecff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

body.checkout-pix.checkout-shared .checkout-modal {
  position: static;
  inset: auto;
  background: transparent;
  padding: 1.4rem 1rem;
  align-items: stretch;
  z-index: auto;
}

body.checkout-pix.checkout-shared .checkout-box {
  width: min(1060px, 100%);
  max-width: 1040px;
  max-height: none;
  border-radius: 14px;
  box-shadow: 0 26px 40px rgba(37, 43, 83, 0.18);
  background: #f3f4fb;
  overflow: hidden;
  border: 1px solid #d0d5f4;
}

body.checkout-pix.checkout-shared .checkout-modal-header {
  position: relative;
  top: auto;
  padding: 0.85rem 1rem;
  background: #eef0ff;
  border-bottom: 1px solid #d7dbf2;
  border-radius: 0;
}

body.checkout-pix.checkout-shared .checkout-modal-header h3 {
  font-family: var(--checkout-font-display);
  margin: 0;
  color: #23306d;
  font-size: 1.45rem;
  font-weight: 600;
}

body.checkout-pix.checkout-shared .checkout-content {
  padding: 0.95rem;
  border-radius: 0 0 14px 14px;
}

body.checkout-pix.checkout-shared #checkout-payment.checkout-grid-card {
  align-items: start;
  gap: 0;
  padding: 0;
  grid-template-columns: 1.65fr 1.1fr;
}

body.checkout-pix.checkout-shared .checkout-card-form,
body.checkout-pix.checkout-shared .checkout-pix-form {
  align-items: stretch;
  justify-content: flex-start;
  background: #f6f7fc;
  border-right: 1px solid #d4d8ef;
  border-radius: 0 0 0 12px;
  padding: 1.45rem;
  box-shadow: none;
}

body.checkout-pix.checkout-shared .checkout-info {
  background: #ececff;
  padding: 1.4rem 1.2rem;
  gap: 1rem;
  justify-content: flex-start;
  border-radius: 0 0 12px 0;
}

body.checkout-pix.checkout-shared .checkout-footer {
  background: transparent;
  border-top: 0;
  padding: 0.85rem 0 1.1rem;
  color: #69718f;
  font-size: 0.68rem;
}

body.checkout-pix.checkout-shared .checkout-footer-container {
  width: min(1060px, 100%);
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

body.checkout-pix.checkout-shared .checkout-footer-divider {
  display: none;
}

body.checkout-pix .checkout-qrcode-image-tag {
  max-width: 100%;
  height: auto;
}

/* Shared inner panel corners for card and pix */
body.checkout-shared #checkout-payment.checkout-grid-card {
  border-radius: 12px;
  overflow: hidden;
}

body.checkout-shared #checkout-payment.checkout-grid-card > .checkout-qrcode {
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}

body.checkout-shared #checkout-payment.checkout-grid-card > .checkout-info {
  border-radius: 0 12px 12px 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  body.checkout-shared #checkout-payment.checkout-grid-card > .checkout-qrcode {
    border-radius: 12px 12px 0 0;
  }

  body.checkout-shared #checkout-payment.checkout-grid-card > .checkout-info {
    border-radius: 0 0 12px 12px;
  }

  body.checkout-pix.checkout-shared .checkout-header {
    padding: 0.75rem 1rem;
  }

  body.checkout-pix.checkout-shared .checkout-header-container {
    flex-wrap: wrap;
  }

  body.checkout-pix.checkout-shared .checkout-header-container > h1 {
    font-size: 1.55rem;
  }

  body.checkout-pix.checkout-shared .checkout-header-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.85rem;
    font-size: 0.62rem;
  }

  body.checkout-pix.checkout-shared .checkout-modal {
    padding: 0.9rem;
  }

  body.checkout-pix.checkout-shared #checkout-payment.checkout-grid-card {
    grid-template-columns: 1fr;
  }

  body.checkout-pix.checkout-shared .checkout-card-form,
  body.checkout-pix.checkout-shared .checkout-pix-form {
    padding: 1.1rem;
    border-right: 0;
    border-bottom: 1px solid #d5d8f0;
  }

  body.checkout-pix.checkout-shared .checkout-info {
    padding: 1rem;
    border-radius: 0 0 12px 12px;
  }
}



