.checkoutPage {
  min-height: 100vh;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  width: 100%;
}

.container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  max-width: 1800px;
  margin: 0 auto;
  padding: 40px 40px 40px 180px;
  gap: 100px;
  width: 100%;
  box-sizing: border-box;
}

.leftSection {
  padding-right: 40px;
  padding-left: 0px;
  width: 100%;
  box-sizing: border-box;
}

.header {
  margin-bottom: 40px;
}

.backButton {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 0;
  transition: opacity 0.3s ease;
}

.backButton:hover {
  opacity: 0.7;
}

.mainTitle {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 1px;
}

.formSection,
.addressSection,
.paymentSection {
  margin-bottom: 50px;
  background-color: rgba(30, 30, 30, 0.5);
  padding: 30px 35px;
  border-radius: 8px;
}

.sectionTitle {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 25px;
}

.formGroup {
  margin-bottom: 20px;
}

.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.input {
  width: 100%;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: Arial, Helvetica, sans-serif;
}

.input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.08);
}

.input::placeholder {
  color: #666;
}

select.input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.input option {
  background-color: #1a1a1a;
  color: #fff;
}

.instructionsList {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 30px;
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
}

.instructionsList li {
  margin-bottom: 8px;
}

.contactSupport {
  list-style: none;
  margin-left: -20px;
  margin-top: 12px;
}

.supportLink {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}

.supportLink:hover {
  opacity: 0.7;
}

.details {
  margin-top: 8px;
  color: #999;
}

.details summary {
  cursor: pointer;
  text-decoration: underline;
  color: #999;
  font-size: 13px;
}

.details summary:hover {
  opacity: 0.7;
}

.fieldLabel {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  display: block;
}

.applyButton {
  width: 100%;
  padding: 16px;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.applyButton:hover {
  background-color: #e0e0e0;
}

.paymentMethods {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.paymentMethodButton {
  flex: 1;
  padding: 15px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.paymentMethodButton:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.08);
}

.paymentMethodButton.active {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.cardFields {
  display: flex;
  flex-direction: column;
}

.cardNumberWrapper {
  position: relative;
}

.cardNumberWrapper .input {
  padding-right: 180px;
}

.cardLogos {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 160px;
}

.cardLogos img {
  opacity: 0.7;
}

.rightSection {
  position: sticky;
  top: 100px;
  height: fit-content;
  padding-left: 0px;
  width: 100%;
  box-sizing: border-box;
}

.summary {
  background-color: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 35px 30px;
}

.summaryTitle {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}

.summarySection {
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summaryLabel {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.summaryItem {
  margin-bottom: 25px;
}

.itemRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 15px;
}

.price {
  font-weight: 600;
  white-space: nowrap;
}

.note {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  margin-top: 8px;
}

.totalSection {
  margin-top: 30px;
}

.totalRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-top: 20px;
}

.totalLabel {
  font-size: 16px;
  font-weight: 700;
}

.totalPrice {
  font-size: 24px;
  font-weight: 700;
}

.payButton {
  width: 100%;
  padding: 18px;
  background-color: #444;
  color: #999;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: not-allowed;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.payButton:not(:disabled) {
  background-color: #00ff87;
  color: #000;
  cursor: pointer;
}

.payButton:not(:disabled):hover {
  background-color: #00cc6a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 135, 0.3);
}

@media (max-width: 1200px) {
  .container {
    padding: 40px 40px 40px 80px;
    gap: 60px;
  }
}

@media (max-width: 1024px) {
  .checkoutPage {
    overflow-x: hidden;
  }
  
  .container {
    grid-template-columns: 1fr;
    padding: 30px 30px;
    gap: 50px;
    width: 100%;
    max-width: 100%;
  }

  .leftSection {
    padding-right: 0;
    padding-left: 0;
    width: 100%;
  }

  .rightSection {
    position: static;
    padding-left: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .checkoutPage {
    overflow-x: hidden;
  }
  
  .container {
    padding: 20px;
    gap: 30px;
    width: 100%;
    max-width: 100%;
  }
  
  .header {
    margin-bottom: 30px;
  }
  
  .mainTitle {
    font-size: 32px;
  }
  
  .formSection,
  .addressSection,
  .paymentSection {
    padding: 25px 20px;
    margin-bottom: 30px;
  }
  
  .sectionTitle {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .formRow {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
  
  .formRow .formGroup {
    margin-bottom: 20px;
  }
  
  .input {
    padding: 14px 18px;
    font-size: 14px;
  }
  
  .instructionsList {
    font-size: 13px;
    padding-left: 18px;
  }
  
  .paymentMethods {
    flex-direction: column;
    gap: 12px;
  }
  
  .paymentMethodButton {
    padding: 14px 18px;
    font-size: 14px;
  }
  
  .cardNumberWrapper {
    position: relative;
  }
  
  .cardNumberWrapper .input {
    padding-right: 120px;
  }
  
  .cardLogos {
    gap: 3px;
    right: 8px;
  }
  
  .cardLogos img {
    width: 24px;
    height: 16px;
  }
  
  .summary {
    padding: 25px 20px;
  }
  
  .summaryTitle {
    font-size: 20px;
    margin-bottom: 25px;
  }
  
  .itemRow {
    font-size: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .totalPrice {
    font-size: 20px;
  }
  
  .payButton {
    padding: 16px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .checkoutPage {
    overflow-x: hidden;
  }
  
  .container {
    padding: 15px;
    gap: 25px;
    width: 100%;
    max-width: 100%;
  }
  
  .leftSection {
    width: 100%;
    overflow-x: hidden;
  }
  
  .rightSection {
    width: 100%;
  }
  
  .backButton {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .mainTitle {
    font-size: 24px;
  }
  
  .formSection,
  .addressSection,
  .paymentSection {
    padding: 20px 15px;
    margin-bottom: 25px;
  }
  
  .sectionTitle {
    font-size: 20px;
    margin-bottom: 18px;
  }
  
  .formGroup {
    margin-bottom: 15px;
  }
  
  .formRow {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
  
  .formRow .formGroup {
    margin-bottom: 15px;
  }
  
  .input {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .instructionsList {
    font-size: 12px;
    padding-left: 16px;
    margin-bottom: 20px;
  }
  
  .instructionsList li {
    margin-bottom: 6px;
  }
  
  .fieldLabel {
    font-size: 11px;
  }
  
  .paymentMethodButton {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .cardNumberWrapper {
    position: relative;
  }
  
  .cardNumberWrapper .input {
    padding-right: 100px;
  }
  
  .cardLogos {
    gap: 2px;
    right: 6px;
  }
  
  .cardLogos img {
    width: 20px;
    height: 12px;
  }
  
  .summary {
    padding: 20px 15px;
  }
  
  .summaryTitle {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .summaryLabel {
    font-size: 12px;
    margin-bottom: 20px;
  }
  
  .itemRow {
    font-size: 13px;
  }
  
  .note {
    font-size: 11px;
  }
  
  .totalLabel {
    font-size: 14px;
  }
  
  .totalPrice {
    font-size: 18px;
  }
  
  .payButton {
    padding: 14px;
    font-size: 14px;
  }
}

/* Seção de Cupom */
.couponSection {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid rgba(76, 175, 80, 0.3);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.1);
}

.couponInfoText {
  color: #4caf50;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 6px;
  border-left: 3px solid #4caf50;
}

.couponSelector {
  margin-top: 20px;
}

.couponButton {
  width: 100%;
  padding: 14px 20px;
  background: rgba(76, 175, 80, 0.1);
  border: 2px dashed rgba(76, 175, 80, 0.5);
  border-radius: 8px;
  color: #4caf50;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.couponButton:hover {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
}

.selectedCoupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(76, 175, 80, 0.15);
  border: 2px solid #4caf50;
  border-radius: 8px;
  gap: 15px;
}

.couponCode {
  font-weight: 700;
  color: #4caf50;
  font-size: 18px;
}

.couponDiscount {
  color: #4caf50;
  font-size: 16px;
  font-weight: 600;
}

.removeCouponBtn {
  background: rgba(244, 67, 54, 0.2);
  border: none;
  color: #f44336;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.removeCouponBtn:hover {
  background: rgba(244, 67, 54, 0.3);
}

/* Modal de Cupons */
.couponModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.couponModalOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.couponModalContent {
  position: relative;
  background: #1a1a1a;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.couponModalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.couponModalHeader h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}

.couponModalClose {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.couponModalClose:hover {
  background: rgba(255, 255, 255, 0.2);
}

.couponModalBody {
  padding: 20px 30px;
}

.couponItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.couponItem:hover {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
  transform: translateY(-2px);
}

.couponInfo {
  flex: 1;
}

.couponName {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.couponDescription {
  color: #ccc;
  font-size: 14px;
}

.couponItem .couponDiscount {
  font-size: 24px;
  font-weight: 700;
  color: #4caf50;
}

.totalRow .discount {
  color: #4caf50;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsividade para Cupom */
@media (max-width: 768px) {
  .couponSection {
    padding: 20px;
  }
  
  .couponModalContent {
    width: 95%;
    max-height: 90vh;
  }
  
  .couponModalHeader {
    padding: 15px 20px;
  }
  
  .couponModalHeader h2 {
    font-size: 20px;
  }
  
  .couponModalBody {
    padding: 15px 20px;
  }
  
  .couponItem {
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .couponItem .couponDiscount {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .couponSection {
    padding: 15px;
  }
  
  .couponButton {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .selectedCoupon {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  
  .couponCode {
    font-size: 16px;
  }
  
  .couponModalContent {
    width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }
  
  .couponModalHeader {
    padding: 12px 15px;
  }
  
  .couponModalBody {
    padding: 12px 15px;
  }
  
  .couponItem {
    padding: 12px;
  }
  
  .couponName {
    font-size: 18px;
  }
  
  .couponDescription {
    font-size: 13px;
  }
}

/* Modal de Pagamento PIX */
.pixModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.pixModalOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.pixModalContent {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 10001;
}

.pixModalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid #333;
}

.pixModalHeader h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.pixModalClose {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.pixModalClose:hover {
  color: #ff4444;
}

.pixModalBody {
  padding: 30px;
}

.pixOrderSummary {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.pixOrderSummary h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #fff;
}

.pixOrderSummary p {
  margin: 8px 0;
  color: #ccc;
  font-size: 14px;
}

.pixOrderSummary .originalPrice {
  text-decoration: line-through;
  color: #999;
}

.pixOrderSummary .discountPrice {
  color: #4caf50;
  font-weight: 600;
}

.pixOrderSummary .finalPrice {
  font-size: 20px;
  font-weight: 700;
  color: #4caf50;
}

.pixOrderSummary .couponCode {
  color: #4caf50;
  font-weight: 600;
}

.pixPaymentSection {
  text-align: center;
}

.pixPaymentSection h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #fff;
}

.pixQrCodeWrapper {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pixQrCode {
  width: 250px;
  height: 250px;
  display: block;
}

.pixDivider {
  display: flex;
  align-items: center;
  margin: 30px 0;
  color: #666;
}

.pixDivider::before,
.pixDivider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #333;
}

.pixDivider span {
  padding: 0 15px;
  font-size: 14px;
}

.pixCodeWrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.pixCodeInput {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: monospace;
}

.pixCodeInput:focus {
  outline: none;
  border-color: #4caf50;
}

.pixCopyButton {
  padding: 12px 24px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s;
  white-space: nowrap;
}

.pixCopyButton:hover {
  background: #45a049;
}

.pixStatusSection {
  margin: 30px 0;
  padding: 20px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.pixStatusIndicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.pixPulse {
  width: 12px;
  height: 12px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.pixStatusIndicator p {
  margin: 0;
  color: #4caf50;
  font-weight: 600;
  font-size: 16px;
}

.pixStatusText {
  margin: 0;
  color: #999;
  font-size: 13px;
}

.pixInstructions {
  text-align: left;
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.pixInstructions h4 {
  margin: 0 0 15px 0;
  color: #fff;
  font-size: 16px;
}

.pixInstructions ol {
  margin: 0;
  padding-left: 20px;
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
}

.pixInstructions li {
  margin: 8px 0;
}

.pixTransactionInfo {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: left;
}

.pixTransactionInfo p {
  margin: 0;
  color: #999;
  font-size: 13px;
}

.pixTransactionInfo .transactionId {
  color: #4caf50;
  font-family: monospace;
  font-size: 12px;
}

.pixConfirmation {
  text-align: center;
  padding: 40px 20px;
}

.pixConfirmationIcon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.pixConfirmation h2 {
  margin: 0 0 15px 0;
  color: #4caf50;
  font-size: 28px;
}

.pixConfirmation p {
  margin: 10px 0;
  color: #ccc;
  font-size: 16px;
}

.pixConfirmationButton {
  margin-top: 30px;
  padding: 14px 40px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s;
}

.pixConfirmationButton:hover {
  background: #45a049;
}

/* Responsivo para Modal PIX */
@media (max-width: 768px) {
  .pixModalContent {
    max-width: 100%;
    max-height: 95vh;
    margin: 10px;
  }
  
  .pixModalHeader {
    padding: 20px;
  }
  
  .pixModalHeader h2 {
    font-size: 20px;
  }
  
  .pixModalBody {
    padding: 20px;
  }
  
  .pixQrCode {
    width: 200px;
    height: 200px;
  }
  
  .pixCodeWrapper {
    flex-direction: column;
  }
  
  .pixCopyButton {
    width: 100%;
  }
}

