@charset "utf-8";
/* ==========================================================================
   ส่วนจัดรูปแบบการแสดงผล รายละเอียดรายการที่ต้องชำระ (รองรับทุกหน้าจอ)
   ========================================================================== */
.box-detail-pay{
	font-family: serithairegular;
	font-size: 1rem;
	color: #666;
	background-color: #FFFFFF;
	float: left;
	height: auto;
	width: 40%;
	margin-top: 1%;
	margin-bottom: 1%;

	line-height: 160%;
	margin-left: 30%;
	border-radius: 15px;
	}
.box-detail-pay-02{
	font-family: serithairegular;
	font-size: 1rem;
	color: #666;
	background-color: #FFFFFF;
	float: left;
	height: auto;
	width: 100%;
	margin-top: 1%;
	margin-bottom: 1%;
	line-height: 160%;
	border-radius: 15px;
	}
.show-detail-pay {
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	width: 100%;
	max-width: 600px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.05);
	overflow: hidden; /* เพิ่มระยะห่างระหว่างกล่องแต่ละชุด */
}

.toggle-trigger {
    display: none;
}

.show-detail-pay-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #e0e0e0;
    color: #000000;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.show-detail-pay-title:hover {
    background-color: #d5d5d5;
}

.arrow-icon {
    border: solid #000000;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.show-detail-pay ul {
    list-style: none;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out, padding 0.3s ease;
    padding: 0 20px;
    background-color: #ffffff;
}

.ul-content {
    overflow: hidden;
    width: 100%;
}

.show-detail-pay li {
    padding: 14px 12px;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: background-color 0.2s ease;
    border-radius: 6px;
}

.show-detail-pay li:hover {
    background-color: #f9f9f9;
}

.show-detail-pay li:last-child {
    border-bottom: none;
}

.show-detail-pay li span:first-child {
    flex: 1;
    font-weight: 500;
}

.show-detail-pay li span:last-child {
    font-weight: bold;
    color: #000000;
    font-size: 1rem;
    white-space: nowrap;
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
}

/* คุมการทำงานเปิด/ปิด และหมุนลูกศร (ใช้คลาสร่วมกันได้เลย) */
.toggle-trigger:checked ~ .show-detail-pay-title .arrow-icon {
    transform: rotate(-135deg);
}

.toggle-trigger:checked ~ ul {
    grid-template-rows: 1fr;
    padding: 10px 20px 20px 20px;
}

/* Responsive สำหรับมือถือ */
@media (max-width: 670px) {
	.box-detail-pay{
	font-family: serithairegular;
	font-size: 1rem;
	color: #666;
	background-color: #FFFFFF;
	float: left;
	height: auto;
	width: 80%;
	margin-top: 1%;
	margin-bottom: 1%;
	line-height: 160%;
	margin-left: 10%;
	border-radius: 15px;
	}
.box-detail-pay-02{
	font-family: serithairegular;
	font-size: 1rem;
	color: #666;
	background-color: #FFFFFF;
	float: left;
	height: auto;
	width: 100%;
	margin-top: 1%;
	margin-bottom: 1%;
	line-height: 160%;
	border-radius: 15px;

	}
    .show-detail-pay-title {
        font-size: 1rem;
        padding: 14px 16px;
    }
    .show-detail-pay ul {
        padding: 0 16px;
    }
    .toggle-trigger:checked ~ ul {
        padding: 10px 16px 16px 16px;
    }
    .show-detail-pay li {
        font-size: 0.9rem;
        padding: 12px 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .show-detail-pay li span:last-child {
        align-self: flex-end;
        font-size: 0.95rem;
        padding: 2px 8px;
    }
}
