@font-face {
  font-family: 'DM Serif Text';
  src: url('/website_coupons_custom/static/src/fonts/DMSerifText-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'DM Serif Text';
  src: url('/website_coupons_custom/static/src/fonts/DMSerifText-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

#wrap {
    padding-top: 0 !important;
}

/* MAIN general */
main {
    background-color: #f3f7ec;
}

/* solo en login */
main:has(.oe_website_login_container) {
    background:
        url('./medicupon_slogan.png') no-repeat left 15% center,
        linear-gradient(to bottom, rgba(30,30,30,0.5) 100%),
        url('./login_bg.png') no-repeat center top fixed;
    background-size: 500px auto, cover, cover;
}

body:has(.oe_website_login_container) main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

@media (min-width: 768.98px) {
    body:has(.oe_website_login_container) main {
        justify-content: flex-end;
        align-items: center;
    }
}

body:has(.oe_website_login_container) header {
    display: none !important;
}

.oe_website_login_container {
    font-family: 'Roboto', sans-serif;
    padding: 1rem 4rem;
    background: #f3f7ec;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.oe_website_login_container h2,
.oe_website_login_container label {
    font-weight: 400;
}

.oe_website_login_container .btn-primary {
    background-color: #143a58;
    font-weight: 600;
    border-radius: 35px;
    height: 3em;
    width: 100%;
}

@media (min-width: 768.98px) {
    .oe_website_login_container .btn-primary {
        width: 60%;
    }
}

.oe_website_login_container .oe_login_buttons {
    justify-items: center;
}

.oe_website_login_container a[href*="/web/signup"] {
    display: none !important;
}

.oe_website_login_container .login-label {
    font-size: 25px;
}

@media (min-width: 768.98px) {
    .oe_website_login_container {
        padding: 4rem;
        height: 520px;
        width: 550px;
        max-width: 725px;
        margin-right: 5%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .oe_website_login_container .oe_login_form {
        width: 400px;
        max-width: 100%;
        margin: 0 auto;
    }

    .oe_website_login_container .form-control {
        width: 100%;
        height: 3rem;
    }
}

/* FOOTER */
footer {
    background-color: #153b58 !important;
}

footer .container {
    height: 130px;
}

footer .navbar-brand img {
    width: 90px;
}

footer p {
    font-size: 12px;
}

.o_footer a:not(.btn) {
    color: #fff !important;
}

/* FAQS */
#wrap h1 {
    font-weight: 700;
}

#mainAccordion {
    display: block;
}

#mainAccordion .col-md-6 {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#mainAccordion .accordion-item {
    border: none !important;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
    overflow: hidden;
    margin-bottom: 0 !important;
}

#mainAccordion .accordion-header {
    display: flex;
    align-items: center;
}

#mainAccordion .accordion-button {
    background: #fff !important;
    color: #000 !important;
    font-weight: 600;
    font-size: 16px;
    height: 80px;
    padding: 1rem 1.2rem;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

#mainAccordion .accordion-button::after {
    background-image: none !important;
    content: "+";
    font-size: 22px;
    font-weight: bold;
    color: #143a58;
    margin-top: 3px;
    margin-left: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: none !important;
}

#mainAccordion .accordion-button:not(.collapsed)::after {
    content: "–";
    color: #143a58;
}

#mainAccordion .accordion-button:not(.collapsed) {
    color: #143a58 !important;
    background: #fff !important;
}

#mainAccordion .accordion-button:hover {
    background: #f8f9fa !important;
}

#mainAccordion .accordion-button:focus {
    border-color: transparent !important;
    box-shadow: none !important;
}

#mainAccordion .accordion-body {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    padding: 1rem 1.2rem;
    border-top: none !important;
}

#mainAccordion .accordion-collapse {
    border: none !important;
}

@media (min-width: 768px) {
    .row > .col-md-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 767.98px) {
    #mainAccordion .col-md-6 {
        gap: 0.8rem;
    }

    #mainAccordion .row .col-md-6:first-child {
        margin-bottom: 1rem;
    }
}

/* HOME */
.lab-footer {
    background-color: #143a58 !important;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: none !important;
}

.labs-row {
    max-width: 900px;
    margin: 0 auto;
}

/* PRODUCT */

.discount-badge-svg path {
    fill: #143b58;
}

.discount-5 path {
    fill: #007bff;
}


.discount-10 path {
    fill: #e3e9d4 !important;
}
.discount-10 {
    color: #143b58 !important;
}

.discount-15 path {
    fill: #507FA4;
}

.discount-15 {
    color: #e5e8d6 !important;
}

.discount-20 path {
    fill: #143b58 !important;
}

.discount-20  {
    color: #e5e8d6 !important;
}

.product-card .card{
    border-radius: 25px !important;
}

.product-card .btn-group-toggle .btn {
    padding: 0.54rem 0.9rem;
    font-size: 0.95rem;
}

.discount-badge {
    background: #143a58;
    color: #fff;
    font-family: 'DM Serif Text', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 23px;
    padding: 0.6rem 0.4em 0.6rem 1em;
    position: absolute;
    top: 1rem;
    right: 0;
    border-radius: 8px;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%, 0 50%);
}

.product-lab-logo{
    width:60px;
    height:60px;
    overflow:hidden;
    background-color: #faeb61;
}

.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0;
}

.btn-add-to-cart .text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    transition: all 0.3s ease;
    font-size: 14px;
}
.btn-check-selected {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #143a58;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.btn-check-selected:hover {
    background-color: #dc3545;
    color: #fff !important;
}

.double-check {
    width: 20px !important;
    margin-bottom: 4px;
}

.btn-add-to-cart:hover {
    border-radius: 30px;
    width: 90px;
    justify-content: flex-start;
    padding-left: 12px;
}
.btn-add-to-cart:hover img {
    margin-left: -4px !important;
}

.btn-add-to-cart:hover .text {
    max-width: 70px;
    opacity: 1;
    margin-left: 4px;
}
/* SUMMARY */

.generate-coupons {
    background-color: #143a58;
}

.generate-coupons:hover {
    background-color: #FFFFFF;
    color: #143a58;
}
.generate-coupons:focus {
    background-color: #143a58;
    color: #FFFFFF;
}

/* HISTORY */
.table thead th:first-child {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}
.history-discount-badge{
    font-size: 12px;
    background-color: #e1f4e2;
    padding: 5px 14px;
    color: #037543 !important;
    border-radius: 16px;
}

.table thead th:last-child {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.table .action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    color: #143a58;
}

.table .action-link i {
    font-size: 0.9rem;
}

.discount-badge-wrapper {
    font-style: italic;
    position: absolute;
    top: 1.3rem;
    right: 0;
    border-radius: 8px;
}

.discount-badge-svg {
    height: 52px !important;
    width: 84px;
}

.discount-badge-text {
    font-family: 'DM Serif Text', serif;
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    font-size: 23px;
    font-weight: 400;
}

.table td {
    font-size: 0.95rem;
    padding: 0.9rem 0.75rem;
}

.table td,
.table th {
    border: none !important;
}

.table tbody tr:first-child td {
    border-top: none !important;
}

.table,
.table thead,
.table tbody,
.table tr,
.table td,
.table th {
    border: none !important;
    border-top: none !important;
    border-collapse: collapse !important;
}

.table tbody tr {
    border: none !important;
}

.table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.table tbody tr:hover {
    background-color: #f2f6f9;
}

.table thead {
    background-color: #143a58;
}

.dt-search {
    display: none !important;
}

dt-input {
    border-radius: 25px !important;
}

/* CART */

.floating-cart-btn-container {
    display: block !important;
    top: -3px !important;
    right: 0px !important;
    position: relative !important;
    z-index: 500;
    box-shadow: none !important;
    border-radius: 25px !important;
}

.floating-cart-buttons-container :first-child {
    background-color: #143a58 !important;
    border-radius: 25px !important;
}

.add-additional-product{
    border-color: #143B59;
    color: #143B59;
    background-color: inherit !important;
    border-radius: 25px !important;
}

.floating-cart-container {
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh !important;
    max-width: 365px;
    max-height: none !important;
    border-radius: 0 !important;
    border-top-right-radius: 0 !important;
    display: none;
    overflow: hidden;
}

#cartToggleBtn {
    background-color: inherit !important;
    border: none !important;
}

.cart-count{
    background-color: #507FA4 !important;
}

.cart-items {
    border-top: none !important;
    border-bottom: none !important;
}

#floatingCart::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: -1; /* queda detrás del carrito */
}

#floatingCart .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
}

#floatingCart .cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

#floatingCart .floating-cart-buttons-container {
    flex-shrink: 0;
}

.add-additional-product:hover{
    background-color: #143B59 !important;
}

/* HEADER */
.dropdown-toggle {
    color: #fff !important;
}

.dropdown-toggle:hover {
    color: #f3f7ec !important;
}

.header-links {
    margin-right: 20px !important;
}

li .dropdown-menu {
    min-width: 7rem !important;
}

.o_wsale_my_cart i.fa-shopping-cart {
    display: inline-block !important;
    font-size: 20px;
    color: #fff;
    margin-right: 5px;
}

.o_wsale_my_cart .my_cart_quantity {
    background: #ff4081;
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
    margin-left: 3px;
}

#header_medicupon,
#header-container {
    height: 60px;
    background-color: #153b58;
}

.o_back_button a {
    color: #143a58;
    font-weight: 600;
    text-decoration: none;
}

.o_back_button a:hover {
    text-decoration: underline;
}

.o_back_button a i {
    font-size: 16px;
}

.page-header-faq-block {
    background: #f3f7ec;
    border-radius: 12px;
    padding: 2rem;
    padding-bottom: 0;
    margin-bottom: 2rem;
    margin-bottom: 0;
}

.page-header-block {
    background: #f3f7ec;
    border-radius: 12px;
    padding: 2rem;
    padding-bottom: 0 !important;
    margin-bottom: 0rem !important;
}

.page-header-block .btn-back {
    color: #143a58;
    font-weight: 600;
    text-decoration: none;
}

.page-header-block .btn-back:hover {
    text-decoration: underline;
}

.page-header-block h2 {
    font-size: 2rem;
    color: #143a58;
    margin-bottom: .5rem;
}

.page-header-block p.lead {
    font-size: 1.1rem;
    margin: 0;
}

/* MY COUPONS */

.page-header-block .my-coupons-box {
    border: 1px solid #000;
    border-radius: 25px;
    padding: 1rem 1.5rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header-block .my-coupons-box .fw-bold {
    color: #143a58;
}

.page-header-block .my-coupons-box .link-history {
    font-size: 0.9rem;
    color: #143a58;
    text-decoration: none;
    font-weight: 500;
}

.page-header-block .my-coupons-box .link-history:hover {
    text-decoration: underline;
}

.page-header-block .my-coupons-box > div{
    border-color: #ddd !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
}

.page-header-block .my-coupons-box {
    display: flex !important;
    align-items: stretch !important;
}

@media (max-width: 768px) {
    .page-header-block .my-coupons-box {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .page-header-block .my-coupons-box .border-end {
        border: none !important;
    }
}

.btn-back {
    color: #143a58 !important;
    text-decoration: none;
    font-weight: 600;
}

.btn-back:visited {
    color: #143a58 !important;
}

/* FILTER CATEGORY */
.filter-category {
    border-radius: 25px !important;
    font-size: 14px !important;
    width: 200px !important;
    height: 40px !important;
    color: #A3A3A3 !important;
    border: 1px solid #143B59;
}
.search-input {
    border-radius: 25px !important;
    font-size: 14px !important;
    width: 380px !important;
    height: 40px !important;
    color: #A3A3A3 !important;
    border: 1px solid #143B59;
}

.search-box .form-control {
    border-radius: 0; /* recto en el medio */
}

.search-box .input-group-text {
    border-radius: 50px 0 0 50px; /* izquierda redondeada */
}

.search-box .btn {
    border-radius: 0 50px 50px 0; /* derecha redondeada */
}


/* ALERTS */
.btn-finish{
    background-color: #143B59 !important;
    padding-left: 6rem !important;
    padding-right: 6rem !important
}

.btn-finish:hover{
    background-color: #FFFFFF !important;
    padding-left: 6rem !important;
    padding-right: 6rem !important;
    color: #143a58 !important;
}

.alert-success, .alert-error {
    background-color: #FFFFFF !important;
    border-radius: 25px;
}