body { margin: 0; font-family: Arial, sans-serif; background-color: #0F0D0D; color: white; } .payment-container { padding: 40px; max-width: 1200px; margin: 0 auto; } .payment-title { font-size: 32px; font-weight: bold; margin-bottom: 10px; } .breadcrumb { color: #aaa; margin-bottom: 30px; } /* Tabs */ .tabs { display: flex; gap: 20px; } .tab-button { background-color: #222; padding: 40px 50px; /* เพิ่ม padding แนวตั้งและแนวนอน */ border-radius: 25px; /* ขอบโค้งใหญ่ขึ้น */ cursor: pointer; border: none; transition: border 0.3s ease; font-size: 22px; /* เพิ่มขนาดตัวอักษร */ color: white; font-weight: 600; /* ตัวหนังสือหนาขึ้น */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* เพิ่มเงานิดหน่อยให้ดูเด่น */ } .tab-button.active { border: 3px solid #f44336; } .tab-button img { max-height: 80px; /* กำหนดสูงสุด */ width: auto; /* รักษาสัดส่วน */ display: block; margin: 0 auto; } .tabs { margin-bottom: -30px; /* ลดระยะห่างลงจากเดิม 30px */ } .tab-content { padding: 40px; margin-top: 0; margin-left: 0 !important; padding-left: 0 !important; width: 100%; /* เพิ่มเป็น 100% */ border-radius: 10px; box-sizing: border-box; /* ให้รวม padding ใน width */ } /* Panel */ .tab-panel { display: none; } .tab-panel.active { display: block; } /* รวมกล่องฝั่งซ้าย-ขวา */ .tab-panel .combined-box { display: flex; border-radius: 10px; overflow: hidden; margin-top: 20px; } /* ซ้าย: Price List */ .price-list { flex: none; /* ปิด flex-grow */ width: 65%; /* กำหนดความกว้าง 65% */ background-color: rgb(33, 30, 31); padding: 70px; } .section-title { font-size: 20px; font-weight: bold; margin-bottom: 20px; } .price-table { width: 100%; border-collapse: collapse; color: white; } .price-table thead { background-color: #333; } .price-table th, .price-table td { padding: 12px; text-align: center; } /* ขวา: PIN Input */ .pin-input { flex: 2; background-color: #313131; padding: 70px; } .price-list, .pin-input { flex: 1; /* แบ่งพื้นที่เท่ากัน */ padding: 70px; box-sizing: border-box; } .pin-input input[type="text"] { width: 100%; padding: 14px; border-radius: 5px; border: 1px solid #555; background-color: #313131; color: white; font-size: 16px; margin-bottom: 20px; text-align: center; transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out, text-align 0.2s ease-in-out; } /* Autofill fix */ .pin-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px #b8b8b8 inset !important; -webkit-text-fill-color: white !important; transition: background-color 5000s ease-in-out 0s; } .pin-input input:focus, .pin-input input:not(:placeholder-shown) { background-color: #313131; border-color: #C24849; outline: none; text-align: left; padding-left: 0.75rem; } /* Label สำหรับ input */ .pin-input-container { position: relative; width: 100%; } .pin-label { position: absolute; left: 0.75rem; top: 40%; transform: translateY(-50%); color: #b8b8b8; font-size: 1rem; font-weight: 500; text-transform: uppercase; pointer-events: none; transition: 0.2s ease all; background-color: #313131; padding: 0 0.25rem; font: inherit; animation-duration: 10ms; animation-name: mui-auto-fill-cancel; letter-spacing: inherit; font-weight: 700; /* เพิ่มตรงนี้ให้หนาขึ้น */ } .pin-input:focus+.pin-label, .pin-input:not(:placeholder-shown)+.pin-label { top: -0.65rem; font-size: 0.85rem; color: #C24849; transform: none; } /* Responsive */ @media (max-width: 768px) { .tab-panel .combined-box { flex-direction: column; } } .apply-button { display: inline-flex; align-items: center; justify-content: center; position: relative; box-sizing: border-box; -webkit-tap-highlight-color: transparent; cursor: pointer; user-select: none; vertical-align: middle; appearance: none; font-weight: 700; line-height: 1.71429; font-size: 16px; text-transform: capitalize; font-family: "Public Sans", sans-serif; width: 100%; color: rgb(255, 255, 255); box-shadow: rgba(194, 72, 73, 0.24) 0px 8px 16px 0px; height: auto; outline: none; border: none; margin: 0 0 20px 0; text-decoration: none; padding: 14px 24px; border-radius: 5px; transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1); background-color: #c24849; } /* Hover */ .apply-button:hover { background-color: rgb(172, 62, 63); box-shadow: rgba(172, 62, 63, 0.3) 0px 10px 18px 0px; } /* PromptPay */ .apply-button.promptpay { background-color: rgb(194, 72, 73); box-shadow: rgba(172, 62, 63, 0.3) 0px 10px 18px 0px; } .apply-button.promptpay:hover { background-color: rgb(172, 62, 63); box-shadow: rgba(172, 62, 63, 0.3) 0px 10px 18px 0px; } /* TrueMoney */ .apply-button.truemoney { background-color: rgb(194, 72, 73); box-shadow: rgba(172, 62, 63, 0.3) 0px 10px 18px 0px; } .apply-button.truemoney:hover { background-color: rgb(172, 62, 63); box-shadow: rgba(172, 62, 63, 0.3) 0px 10px 18px 0px; } /* Active */ .apply-button.active { border: 2px solid #f44336; filter: brightness(1.1); box-shadow: rgba(244, 67, 54, 0.5) 0px 10px 25px 0px; } .topup-warning { background: #fff0f0; border: 1px solid #e53935; border-left: 6px solid #e53935; border-radius: 8px; padding: 20px 25px; margin-top: 20px; font-size: 16px; color: #333; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); max-width: 800px; line-height: 1.6; } .topup-warning strong { font-size: 18px; color: #d32f2f; display: block; margin-bottom: 10px; } .topup-warning ul { padding-left: 20px; margin: 0; } .topup-warning li { margin-bottom: 8px; list-style-type: disc; } .topup-warning u { text-underline-offset: 2px; }