/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/**
 * sticker-calculator.css
 */
.sticker-calculator-wrapper {
    padding: 15px; /* Giảm padding wrapper */
    display: flex;
    justify-content: center;
}

.sticker-calculator-wrapper .order-form {
    width: 1140px;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.sticker-calculator-wrapper .order-form .col-lg-6 {
    width: 570px;
    min-height: auto;
    padding: 5px; /* Giảm padding cột */
    box-sizing: border-box;
    margin-bottom: 0;
}

.sticker-calculator-wrapper .order-form .f-title {
    font-size: 1.4rem; /* Giảm kích thước tiêu đề */
    margin-bottom: 15px; /* Giảm margin tiêu đề */
    color: #333;
    text-align: center;
}

.sticker-calculator-wrapper .order-form .left-form,
.sticker-calculator-wrapper .order-form .right-form {
    padding: 15px; /* Giảm padding form */
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
}

.sticker-calculator-wrapper .order-form h5 {
    font-size: 1.0rem; /* Giảm kích thước tiêu đề phụ */
    margin-bottom: 10px; /* Giảm margin tiêu đề phụ */
    text-align: center;
    color: #555;
}

.sticker-calculator-wrapper .order-form .input-group {
    margin-bottom: 8px; /* Giảm margin input group */
    display: flex;
    align-items: flex-start;
}

.sticker-calculator-wrapper .order-form .input-group-prepend {
    margin-right: 2px;
    flex-shrink: 0;
    width: 160px; /* Giữ nguyên chiều rộng label cho PC */
    text-align: left;
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .sticker-calculator-wrapper .order-form .input-group-prepend {
        width: auto;
        margin-right: 5px;
        margin-bottom: 3px;
    }

    .sticker-calculator-wrapper .order-form .form-control.classic,
    .sticker-calculator-wrapper .order-form input[type="number"].form-control,
    .sticker-calculator-wrapper .order-form input[type="text"].form-control,
    .sticker-calculator-wrapper .order-form textarea.form-control {
        width: 100%;
        border-radius: 3px !important;
    }

    .sticker-calculator-wrapper .order-form .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .sticker-calculator-wrapper .order-form .input-group-prepend .input-group-text {
        border-radius: 3px !important;
        padding: 6px 10px; /* Giảm padding label mobile */
        font-size: 13px; /* Giảm font size label mobile */
    }
}

.sticker-calculator-wrapper .order-form .input-group-prepend .input-group-text {
    background-color: #eee;
    border: 1px solid #ccc;
    color: #333;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 3px 0 0 3px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticker-calculator-wrapper .order-form .form-control.classic,
.sticker-calculator-wrapper .order-form input[type="number"].form-control,
.sticker-calculator-wrapper .order-form input[type="text"].form-control,
.sticker-calculator-wrapper .order-form textarea.form-control {
    display: block;
    width: calc(100% - 162px);
    padding: 6px 10px; /* Giảm padding input */
    font-size: 14px;
    line-height: 1.4; /* Giảm line-height input */
    color: #333;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border-radius: 0 3px 3px 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.sticker-calculator-wrapper .order-form input[type="number"].form-control:first-child,
.sticker-calculator-wrapper .order-form textarea.form-control:first-child,
.sticker-calculator-wrapper .order-form input[type="text"].form-control:first-child {
    border-radius: 3px;
}

.sticker-calculator-wrapper .order-form input[type="number"].form-control:not(:first-child),
.sticker-calculator-wrapper .order-form textarea.form-control:not(:first-child),
.sticker-calculator-wrapper .order-form input[type="text"].form-control:not(:first-child) {
    border-radius: 0 3px 3px 0;
    border-left: none;
}

/* Điều chỉnh ô ghi chú */
.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(1) {
    align-items: flex-start;
}

.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(1) {
    align-items: flex-start; /* Đảm bảo căn chỉnh từ trên xuống */
}

.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(1) textarea.form-control {
    min-height: 20px !important; /* Sử dụng !important để ghi đè các style khác */
    height: auto !important; /* Cho phép chiều cao tự động tăng khi cần */
    padding-top: 5px; /* Sử dụng px để kiểm soát chính xác hơn */
    padding-bottom: 5px; /* Sử dụng px để kiểm soát chính xác hơn */
    line-height: 1.2;
    font-size: 14px; /* Đảm bảo font-size không quá lớn */
    border-radius: 3px;
    box-sizing: border-box; /* Đảm bảo padding không làm tăng kích thước tổng thể */
}

.sticker-calculator-wrapper .order-form .left-button {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 15px; /* Giảm margin top button */
}

.sticker-calculator-wrapper .order-form .left-button .btn.primary-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem; /* Giảm font size button */
    transition: background-color 0.2s ease-in-out;
    text-align: center;
    flex-grow: 1;
    margin-right: 1px;
    margin-bottom: 1px;
    white-space: nowrap;
}

.sticker-calculator-wrapper .order-form .left-button .btn.primary-btn:last-child {
    margin-right: 0;
}

.sticker-calculator-wrapper .order-form .left-button .btn.primary-btn:hover {
    background-color: #0056b3;
}

.sticker-calculator-wrapper .order-form .right-form .price {
    flex-grow: 1;
    text-align: right;
    padding-left: 10px;
    font-size: 13px; /* Giảm font size giá */
}

.sticker-calculator-wrapper .order-form .right-form .price strong {
    font-weight: bold;
    color: #dc3545;
}

/* Điều chỉnh ô nhập mã khuyến mãi và nút ÁP DỤNG */
.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(2) {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* Giảm margin bottom mã khuyến mãi */
}

.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(2) .input-group-prepend {
    flex-grow: 0;
    width: 160px;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(2) input[type="text"].form-control {
    border-radius: 3px;
    flex-grow: 1;
    margin-right: 5px; /* Giảm margin right input mã khuyến mãi */
    padding: 6px 10px; /* Giảm padding input mã khuyến mãi */
    font-size: 14px;
}

.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(2) button.primary-btn {
    border-radius: 3px;
    padding: 6px 10px; /* Giảm padding nút ÁP DỤNG */
    font-size: 13px; /* Giảm font size nút ÁP DỤNG */
    margin-left: 0;
    flex-grow: 0;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(2) button.primary-btn:hover {
    background-color: #0056b3;
}

.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(2) .input-group-prepend .input-group-text {
    padding: 8px 12px;
    font-size: 14px;
}

/* Định dạng phần đơn giá, khuyến mãi, thành tiền */
.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(3),
.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(4),
.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(5) {
    margin-bottom: 5px; /* Giảm margin bottom các dòng giá */
}

.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(3) .input-group-prepend .input-group-text,
.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(4) .input-group-prepend .input-group-text,
.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(5) .input-group-prepend .input-group-text {
    font-size: 13px; /* Giảm font size label giá */
    padding: 6px 10px; /* Giảm padding label giá */
    width: inherit;
    border-radius: 3px 0 0 3px;
}

.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(3) .price strong::after,
.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(4) .price strong::after,
.sticker-calculator-wrapper .order-form .right-form .input-group:nth-child(5) .price strong::after {
    content: " vnđ";
    margin-left: 3px; /* Giảm margin left đơn vị tiền tệ */
    font-size: 11px; /* Giảm font size đơn vị tiền tệ */
    color: #555;
}

body {
    line-height: 1.2;
}
/**---------------- Media query ----------------**/
@media only screen and (min-width: 48em) { 
	.column-half{
		width: 50%;
	}
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}