/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App layout */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 32px 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-logo {
  width: 200px;
  height: auto;
}

.header-text h1 {
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.header-text p {
  font-size: 16px;
  color: #666;
  font-weight: 400;
}

.app-main {
  flex: 1 1;
  padding: 48px 0;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.pricing-container {
  width: 800px; /* A4 width in px at 96dpi */
  margin: 24px auto;
  padding: 24px 32px;
  background: #fff;
  border-radius: 12px;
  position: relative;
}

/* Configurations section */
.configs-section {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.section-header {
  padding: 32px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.config-count {
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

.create-btn {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

/* Create panel */
.create-panel {
  border-bottom: 1px solid #e5e5e5;
}

.panel-header {
  padding: 24px 32px 0;
}

.panel-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.create-form {
  padding: 24px 32px 32px;
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.submit-btn {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

.cancel-btn {
  background: transparent;
  color: #666;
  border: 1px solid #e5e5e5;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  background: #f5f5f5;
  border-color: #d5d5d5;
}

/* Pricing page styles */
.pricing-container {
  width: 800px;
  margin: 24px auto;
  padding: 24px 32px;
  background: #fff;
  border-radius: 12px;
  position: relative;
}

.logo-top-left {
  margin-bottom: 20px;
}

.logo-bottom-right {
  margin-top: 20px;
  filter: grayscale(100%);
  text-align: right;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.pricing-header h1 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 0;
  text-align: left;
}

.config-selector {
  position: relative;
  display: inline-block;
}

.config-name-static {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  display: inline-block;
}

.config-name-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.config-name-dropdown:hover {
  background: #f0f0f0;
  border-color: #d5d5d5;
}

.config-name-text {
  /* 保持原来的样式 */
}

.dropdown-arrow {
  font-size: 12px;
  color: #999;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateX(-8px) scale(0.8);
  width: 0;
  overflow: hidden;
}

.config-name-dropdown:hover .dropdown-arrow {
  opacity: 1;
  transform: translateX(0) scale(1) rotate(180deg);
  width: auto;
}

.config-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  z-index: 1000;
  margin-top: 8px;
  overflow: hidden;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #1a1a1a;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #f8f8f8;
}

.dropdown-item.active {
  background-color: #f0f0f0;
  color: #1a1a1a;
}

.item-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.item-count {
  font-size: 12px;
  color: #666;
}

/* Configurations grid */
.configs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  padding: 32px;
}

.config-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.config-card:hover {
  border-color: #d5d5d5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.config-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.card-actions-header {
  display: flex;
  gap: 8px;
}

.edit-btn,
.delete-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-btn:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

.delete-btn:hover {
  background: #f5f5f5;
  color: #e74c3c;
}

.config-description {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.config-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.stat-label {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.stat-date {
  font-size: 12px;
  color: #999;
}

.card-actions {
  display: flex;
  justify-content: center;
}

.view-btn {
  background: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.view-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 32px;
  color: #666;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: #666;
}


/* Payment method cards */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-top: 12px;
}

.payment-method-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  border-color: #d5d5d5;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-method-card.selected {
  border-color: #1a1a1a;
  background-color: #f8f8f8;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.method-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.method-logo {
  width: 24px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 4px;
}

.method-details {
  flex: 1 1;
}

.method-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.method-countries {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.method-fees {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.fee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1;
}

.fee-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  cursor: default;
}

.fee-value {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}

.fee-input {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  background-color: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 6px;
  width: 100%;
  text-align: center;
  transition: all 0.2s ease;
}

.fee-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #1a1a1a;
}

.fee-input:disabled {
  background-color: transparent;
  color: #999;
  cursor: not-allowed;
}

.method-fee-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.method-fee-fields .fee-input {
  text-align: left;
}

.fee-textarea {
  font-size: 13px;
  color: #1a1a1a;
  background-color: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 6px;
  width: 100%;
  resize: vertical;
  transition: all 0.2s ease;
}

.fee-textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #1a1a1a;
}

.fee-textarea:disabled {
  background-color: transparent;
  color: #999;
  cursor: not-allowed;
}

.selection-indicator {
  display: flex;
  justify-content: center;
}

.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e5e5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkbox.checked {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.checkmark {
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 80px 32px;
  font-size: 16px;
  color: #666;
}

.no-payment-methods {
  text-align: center;
  padding: 80px 32px;
  color: #666;
}

.no-payment-methods h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.no-payment-methods p {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

/* Table header styles */
.table-header {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px solid #eee;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.header-logo {
  width: 48px;
  margin-right: 16px;
}

.header-details {
  flex: 1 1;
}

.header-fee {
  min-width: 400px;
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.header-processing-fee,
.header-payment-method-fee {
  flex: 1 1;
  padding: 0 8px;
}

.header-processing-fee {
  max-width: 120px;
}

/* Payment method display styles */
.payment-method {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}

.payment-method:last-child {
  border-bottom: none;
}

.pm-logo {
  width: 48px;
  height: 30px;
  background: #e6e6e6;
  border-radius: 8px;
  border: 0.4px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  margin-right: 16px;
  overflow: hidden;
}

.pm-details {
  flex: 1 1;
}

.pm-title {
  font-weight: 500;
  margin-bottom: 2px;
}

.pm-countries {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 2px;
}

.pm-fee {
  min-width: 400px;
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.processing-fee,
.payment-method-fee {
  flex: 1 1;
  padding: 0 8px;
}

.processing-fee {
  max-width: 120px;
  font-weight: 500;
}

.payment-method-fee {
  font-size: 0.95em;
  color: #000000;
}

.payment-method-fee > div {
  line-height: 1.4;
}

.fee-primary {
  color: #000000;
  font-size: 0.95em;
}

.fee-secondary {
  color: #888;
  font-size: 0.9em;
}


.plus {
  margin: 0 8px;
  font-weight: 500;
}

/* Footer note */
.footer-note {
  font-size: 0.9em;
  color: #888;
  margin-top: 32px;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .header-logo {
    width: 160px;
  }

  .header-text h1 {
    font-size: 24px;
  }

  .content-wrapper {
    padding: 0 16px;
  }

  .section-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 24px;
  }

  .configs-grid {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 16px;
  }

  .config-card {
    padding: 20px;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr;
  }

  .create-form {
    padding: 20px 16px 24px;
  }

  .form-actions {
    flex-direction: column;
  }

  .pricing-container {
    width: 100%;
    padding: 16px;
    margin: 0;
    border-radius: 0;
  }

  .pricing-header {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .pricing-header h1 {
    text-align: center;
  }

  .config-dropdown {
    min-width: 240px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-fee {
    min-width: 300px;
  }

  .pm-fee {
    min-width: 300px;
  }
}

@media print {
  body {
    width: auto;
    margin: 0;
    padding: 0;
    background: #fff;
  }
  
  .container,
  .pricing-container {
    box-shadow: none;
    border-radius: 0;
    padding: 16px;
    width: 100%;
  }

  .config-info,
  .back-link,
  .btn,
  .section-header,
  .create-form,
  .config-list {
    display: none;
  }
}

