180 lines
3.3 KiB
CSS
180 lines
3.3 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 20px;
|
|
font-family: 'Segoe UI', sans-serif;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.voucher-container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Voucher Box */
|
|
.voucher-box {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: linear-gradient(135deg, #ffffff, #fef5e6);
|
|
border: 1px solid #f2e8d8;
|
|
border-radius: 16px;
|
|
padding: 18px 20px;
|
|
margin-bottom: 16px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
|
|
transition: all 0.25s ease-in-out;
|
|
}
|
|
|
|
.voucher-box:hover {
|
|
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.voucher-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.voucher-desc {
|
|
font-size: 13px;
|
|
color: #888;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.voucher-title {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #2c2c2c;
|
|
}
|
|
|
|
.btn-bayar {
|
|
background: linear-gradient(to right, #ff7e29, #ff5300);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50px;
|
|
padding: 6px 14px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.btn-bayar:hover {
|
|
background: linear-gradient(to right, #ff5300, #e44d00);
|
|
transform: scale(1.05);
|
|
box-shadow: 0 2px 8px rgba(255, 83, 0, 0.25);
|
|
}
|
|
|
|
|
|
/* Konfirmasi Pembelian */
|
|
.confirm-wrapper {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 10px 15px;
|
|
box-sizing: border-box;
|
|
/* Hapus min-height agar tinggi dinamis mengikuti isi */
|
|
min-height: 400px;
|
|
}
|
|
|
|
.confirm-box {
|
|
background: #fffaf4;
|
|
border: 1px solid #ffd9b8;
|
|
border-radius: 16px;
|
|
padding: 22px 20px;
|
|
max-width: 400px;
|
|
width: 100%;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.confirm-title {
|
|
font-size: 16px;
|
|
color: #333;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.confirm-nama {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.confirm-harga {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #d35400;
|
|
margin: 6px 0 12px;
|
|
}
|
|
|
|
.confirm-info {
|
|
font-size: 11px;
|
|
color: #666;
|
|
margin-top: 5px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.confirm-box input {
|
|
width: 100%;
|
|
padding: 5px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
box-sizing: border-box;
|
|
text-align: center;
|
|
}
|
|
|
|
.button-group {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn-submit,
|
|
.btn-cancel {
|
|
padding: 8px 16px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
border-radius: 50px;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-submit {
|
|
background: linear-gradient(to right, #ff7e29, #ff5300);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-submit:hover {
|
|
background: linear-gradient(to right, #ff5300, #e44d00);
|
|
}
|
|
|
|
.btn-cancel {
|
|
background-color: #ddd;
|
|
color: #333;
|
|
}
|
|
|
|
.btn-cancel:hover {
|
|
background-color: #bbb;
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
.voucher-box {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.voucher-info {
|
|
width: calc(100% - 100px);
|
|
}
|
|
|
|
.btn-bayar {
|
|
width: 80px;
|
|
margin-top: 4px;
|
|
text-align: center;
|
|
}
|
|
|
|
.confirm-box {
|
|
padding: 20px 15px;
|
|
}
|
|
} |