.redeem-point-page-content {
    max-width: 1240px;
    padding: 0 50px;
    margin: auto;
}

.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 100px;
    align-items: stretch;
    /* border: 1px solid red; */
}

.responsive-grid > div {
    min-width: 150px;
    max-width: 320px;
}

.product-card {
    box-shadow: 0 1px 4px 0px rgba(0, 0, 0, 0.25);
    padding: 12px;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.product-card .product-img {
    margin-bottom: 24px;
    min-height: 180px;
    background-image: url("../images/template_product.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.product-card .product-content {
    margin-bottom: 10px;
}

.product-card .btn {
    width: 100%;
}

.filter-container {
    position: relative;
}

.filter-container .filter-icon {
    position: absolute;
    top: 5px;
    z-index: 70;
}

#categoryFilter + .ts-wrapper {
    width: 170px !important;
    margin-left: 24px;
    border: none;
    outline: none;
    margin-bottom: 36px !important;
}

#categoryFilter + .ts-wrapper .ts-control {
    border: none;
    outline: none;
    white-space: nowrap;
}

/* For Konfirmasi Penukaran */
.btn-tab {
    padding: 10px;
    background-color: #f8f9fa;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-tab.active {
    background-color: #212529;
    color: #fff;
}

.redeem-confirmation-modal {
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    margin: auto;
    top: calc(50vh - 280px) !important;
}

.redeem-confirmation-modal .modal-content {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    margin: 24px auto;
    max-height: 400px;
    overflow-y: auto;
}

.redeem-confirmation-modal .action {
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 15px;
}

.redeem-option {
    width: 100%;
}

.redeem-option-content,
.modal-input {
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.redeem-option-content .tab-toggle {
    display: flex;
    width: 100%;
}

.redeem-option-content button {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.redeem-option-content button.active {
    background-color: var(--light-blue);
    color: white;
}

.redeem-option-content .modal-select {
    width: 100%;
    padding: 14px 12px;
    height: 100%;
    border: none;
    outline: none;
}

#home-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.home-form-input,
.modal-textarea {
    border-radius: 6px;
    width: 100%;
    display: block;
    padding: 14px 12px;
    border: 1px solid rgba(46, 46, 46, 0.3);
    outline: none;
}

.home-form-input:focus {
    outline: none;
}

.rt-rw-container {
    display: flex;
    gap: 12px;
}

#cancel-btn {
    background-color: var(--background-color) !important;
    color: var(--secondary-color) !important;
}

#cancel-btn:hover {
    box-shadow: inset 0 0 0 2px var(--secondary-color);
}

.modal-textarea {
    resize: none;
}

.modal-input {
    padding: 12px;
    min-width: 200px;
}

.modal-textarea:focus,
.modal-input:focus {
    outline: none;
}

/* Styling for success modal & fail modal */
#success-modal,
#fail-modal {
    max-width: 500px;
    margin: auto;
}
#success-modal .success-content,
#fail-modal .fail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.success-content > div,
.fail-content > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.redeem-option,
.redeem-via-phone,
.redeem-via-rekening {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.redeem-option label,
.redeem-via-phone label,
.redeem-via-rekening label {
    font-weight: bold;
}

.product-info-container {
    padding: 12px;
    display: flex;
    gap: 12px;
    text-align: left;
    border: 0.3px solid var(--border-grey);
    border-radius: 6px;
}

.product-info {
    display: grid;
    grid-template-columns: minmax(50px, max-content) 1fr;
    column-gap: 8px;
    row-gap: 8px;
    font-family: sans-serif;
    flex: 1.5 1 0%;
    align-self: flex-start;
}

.label {
    font-weight: bold;
}

.value {
    font-weight: normal;
}

.gambar-container {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 229/180;
    min-width: 113px;
    flex: 1 1 0%;
}

.gambar-hadiah {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quantity */
.quantity-menu {
    width: 100%;
}

.quantity-menu .label {
    font-weight: bold;
    text-align: left;
}

.point-calculator {
    margin: 10px auto 20px;
    font-family: sans-serif;
    font-size: 16px;
}

.point-calculator .custom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.header p {
    font-weight: 500;
}

.point-calculator .content {
    font-weight: bold;
}

.point-calculator .counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #888;
    background: white;
    font-size: 18px;
    cursor: pointer;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.counter span {
    min-width: 20px;
    text-align: center;
}

.warning-msg {
    color: var(--accent-red);
    text-align: left;
    font-size: 12px;
}

p.warning-04 {
    text-align: center !important;
    margin-bottom: 10px;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 450px) {
    .product-info-container {
        flex-direction: column;
    }

    .gambar-container {
        width: 50%;
        min-width: none;
        margin: auto;
    }
}

@media (max-width: 860px) {
    .redeem-point-page-content {
        padding: 20px;
    }
}

@media (max-width: 628px) {
    .responsive-grid {
        margin-bottom: 100px !important;
        width: fit-content;
        margin: auto;
    }
}

@media (min-width: 370px) and (max-width: 610px) {
    .redeem-point-page-content {
        width: fit-content;
        margin: auto;
    }
}

@media (max-width: 575px) {
    .redeem-confirmation-modal .action {
        flex-direction: column;
        align-items: stretch;
        row-gap: 15px;
    }

    .redeem-confirmation-modal .action #btn-confirm-redeem {
        order: 1;
    }

    .redeem-confirmation-modal .action #cancel-btn {
        order: 2;
    }

    div.redeem-confirmation-modal {
        top: calc(50vh - 190px);
    }
    .redeem-point-page-content {
        padding: 0;
    }
}
