/*
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.   ***************/
:root {
    --color-yellow: #ffd701;
}

* {
    font-family: "Roboto", sans-serif;
}

.btn-full {
    width: 100%;
}

.sticky-col {
    position: fixed;
    top: 10px;
    width: 100%;
    width: 500px;
}

.sticky-col .button {
    position: relative;
    z-index: 99;
}

.sticky-col .col-inner {
    display: flex;
    justify-content: space-between;
}

.btn-half {
    width: 40%;
}

.text-blink {
    /* simple blink animation */
    animation: blink 1.2s steps(1, start) infinite;
}

@media (prefers-reduced-motion: reduce) {
    .text-blink {
        animation: none;
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.bg-cyan {
    background-color: #23cbcd !important;
}

.bg-yellow {
    background-color: var(--color-yellow);
}

.art-text h2 {
    background-image: radial-gradient(circle, rgb(80, 149, 240), rgb(25, 84, 160));
    background-color: initial;
    background-size: initial;
    background-origin: initial;
    background-position: initial;
    background-repeat: initial;
    background-attachment: initial;
    font-weight: bold;
    line-height: 1.4;
    color: rgb(96, 39, 0);
    text-transform: uppercase;
    text-align: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-head {
    padding: 0 30px;
}

.ladi-button-background {
    background-image: linear-gradient(50deg, rgb(253, 94, 34), rgb(255, 215, 1));
    background-color: initial;
    background-size: initial;
    background-origin: initial;
    background-position: initial;
    background-repeat: initial;
    background-attachment: initial;
}

.ladi-button .ladi-button-background {
    height: 100%;
    width: 100%;
    pointer-events: none;
    transition: inherit;
}

.btn-beating {
    animation: beating 4s infinite;
}

@keyframes beating {

    0%,
    100% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.1);
    }

    20% {
        transform: scale(1.2);
    }

    30% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1.2);
    }

    80% {
        transform: scale(1.1);
    }
}

/* Flashsale UI styles */
.flashsale-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-block;
}

.flashsale-badge .flash-icon {
    margin-right: 6px
}

.flashsale-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px;
}

.flashsale-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.flashsale-item:last-child {
    border-bottom: none
}

.flashsale-item .gift {
    color: #e53935;
    font-size: 20px;
}

.flashsale-item-content {
    flex: 1
}

.flashsale-title {
    color: #d32f2f;
    font-weight: 700;
    font-size: 16px
}

.flashsale-sub {
    color: #d32f2f;
    font-weight: 700;
    font-size: 14px
}

.flashsale .price {
    color: #d32f2f;
    font-weight: 900;
    margin-left: 6px
}

.flashsale-cta {
    text-align: center;
    margin-top: 14px
}

.flashsale-btn {
    display: inline-block;
    background: linear-gradient(180deg, #b90e28, #e31b2b);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(227, 27, 43, 0.28);
}

.flashsale-btn .flash-icon {
    margin-right: 8px
}

@media only screen and (max-width: 48em) {
    .flashsale {
        max-width: 100%;
        padding: 12px
    }

    .flashsale-title {
        font-size: 15px
    }
}

/* Trust row */
.trust-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
}

.trust-item {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #444;
    font-size: 14px
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #fff6e6;
    color: #f0b84b
}

.trust-text {
    white-space: nowrap
}

@media only screen and (max-width: 48em) {
    .trust-row {
        gap: 10px;
        padding: 8px
    }

    .trust-text {
        font-size: 13px
    }
}

.box-present svg {
    display: block;
    transform-origin: center center;
    will-change: transform;
    /* default: gentle continuous shake */
    animation: shake 0.9s cubic-bezier(.36, .07, .19, .97) infinite;
}

.box-present .icon-box-text {
    display: flex;
    align-items: center;
}

/* Optional: apply shake only on hover by adding this class to the container */
.shake-on-hover .box-present img {
    animation: none;
}

.shake-on-hover .box-present:hover img {
    animation: shake 0.9s cubic-bezier(.36, .07, .19, .97) infinite;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-6px) rotate(-2deg);
    }

    20% {
        transform: translateX(6px) rotate(2deg);
    }

    30% {
        transform: translateX(-4px) rotate(-1.5deg);
    }

    40% {
        transform: translateX(4px) rotate(1.2deg);
    }

    50% {
        transform: translateX(-2px) rotate(-0.6deg);
    }

    60% {
        transform: translateX(2px) rotate(0.6deg);
    }

    70% {
        transform: translateX(-1px) rotate(-0.3deg);
    }

    80% {
        transform: translateX(1px) rotate(0.3deg);
    }

    100% {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .box-present img,
    .shake-on-hover .box-present:hover img {
        animation: none !important;
        transform: none !important;
    }
}

/* progress bar */
.flashsale-progress {
    position: relative;
    background: var(--color-yellow);
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0 12px;
}

.flashsale-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff5a5a, #ffd36b);
    width: 0%;
    transition: width 0.6s ease;
}

.flashsale-progress-text {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: #222;
}

.row-divided>.col+.col:not(.large-12) {
    border-left: 2px solid #000;
}

.row-white.row-divided>.col+.col:not(.large-12) {
    border-color: #FFF;
}

.col-border {
    border: 1px solid #ccc;
}

/* Khung form giống ảnh */
.cf7-order-form {
    max-width: 28rem;
    /* ~448px */
    background: #bfbfbf;
    /* nền xám như ảnh */
    padding: 0.75rem;
    /* 12px */
}

/* Input */
.cf7-order-form .cf7-input {
    width: 100%;
    background: #fff;
    border: 2px solid #4a4a4a;
    border-radius: 3px;
    padding: 0.75rem 0.9rem;
    /* 12px 14px */
    font-size: 1rem;
    margin: 0 0 0.9rem;
    /* cách nhau như ảnh */
    outline: none;
}

.cf7-order-form .cf7-input:focus {
    border-color: #000;
}

.cf7-order-form .cf7-input {
    padding: 0px 10px;
}
/* Hộp radio ưu đãi */
.cf7-offer-box {
    background: #fff;
    border: 2px solid #4a4a4a;
    border-radius: 3px;
    padding: 0.75rem;
}

/* Danh sách radio */
.cf7-offer-list .wpcf7-list-item {
    display: block;
    /* mỗi lựa chọn 1 dòng */
    margin: 0.5rem 0;
    /* khoảng cách giữa các dòng */
}

.cf7-offer-list input[type="radio"] {
    transform: translateY(2px);
    /* căn radio lệch xuống nhẹ giống ảnh */
}

/* Nút gửi (tùy chọn) */
.cf7-submit {
    margin-top: 1rem;
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 0.9rem 1rem;
    cursor: pointer;
}

.cf7-submit:hover {
    opacity: .9;
}


.sticky-col {
    position: fixed;
    top: auto;
    width: 100%;
    width: 500px;
    bottom: 0px;
}

.section-under {
    position: relative;
    z-index: 0;
}

.wc-orders-notice {
    position: fixed !important;
    top: auto !important;
    width: 100% !important;
    max-width: 360px !important;
    bottom: 10px;
}

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


}