/* Font imports */

@font-face {
    font-family: 'Buffalo';
    src: url('https://midrag.ro/media/fonts/Buffalo.woff2') format('woff2'), url('https://midrag.ro/media/fonts/Buffalo.woff') format('woff'), url('https://midrag.ro/media/fonts/Buffalo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('https://midrag.ro/media/fonts/Quicksand-Regular.woff2') format('woff2'), url('https://midrag.ro/media/fonts/Quicksand-Regular.woff') format('woff'), url('https://midrag.ro/media/fonts/Quicksand-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('https://midrag.ro/media/fonts/Quicksand-Bold.woff2') format('woff2'), url('https://midrag.ro/media/fonts/Quicksand-Bold.woff') format('woff'), url('https://midrag.ro/media/fonts/Quicksand-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('https://midrag.ro/media/fonts/Quicksand-Light.woff2') format('woff2'), url('https://midrag.ro/media/fonts/Quicksand-Light.woff') format('woff'), url('https://midrag.ro/media/fonts/Quicksand-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('https://midrag.ro/media/fonts/Quicksand-Medium.woff2') format('woff2'), url('https://midrag.ro/media/fonts/Quicksand-Medium.woff') format('woff'), url('https://midrag.ro/media/fonts/Quicksand-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


/* Font usage classes */

.font-buffalo {
    font-family: 'Buffalo', serif;
}

.font-quicksand {
    font-family: 'Quicksand', sans-serif;
}


/* Font weight utilities */

.font-light {
    font-weight: 300;
}

.font-regular {
    font-weight: normal;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: bold;
}

#gift-customizer-wizard {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}


/* Background wrapper that sits behind the content */

#gift-customizer-wizard::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('https://midrag.ro/media/gift.svg') no-repeat right center;
    background-size: 10% auto;
    z-index: -1;
    pointer-events: none;
}

#gift-customizer-wizard::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20%;
    height: 100%;
    background: url('https://midrag.ro/media/gift.svg') no-repeat left center;
    background-size: 100% auto;
    transform: scaleX(-1);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    #gift-customizer-wizard::after,
    #gift-customizer-wizard::before {
        top: 15%;
        /* Move backgrounds down on mobile */
    }
}

.customizer-step {
    /* Styles for each step */
    max-width: 90%;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .customizer-step {
        max-width: 99%;
        padding: 20px 10px;
    }
}


/* Step Header */

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-number {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.step-header h2 {
    font-size: 32px;
    color: #333;
    margin: 10px 0;
    font-weight: 600;
}

.step-description {
    color: #333;
    font-size: 16px;
    margin-top: 10px;
}


/* Selection Grid */

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .selection-grid {
        grid-template-columns: repeat(4, minmax(250px, 300px));
    }
    /* Special case for grids with only 2 items */
    .selection-grid:has(.selection-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(250px, 300px));
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.selection-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.selection-card.selected {
    background: #fda536;
    color: white;
    border-color: #fda536;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    /* Adaugă un efect de umbră */
    transition: all 0.3s ease;
    /* Adaugă o tranziție pentru un efect mai fluid */
}

.selection-card .card-icon {
    font-size: 32px;
    color: #fda536;
    margin-bottom: 15px;
}

.card-icon img {
    border-radius: 12px !important;
    -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Buttons */

.next-step {
    background: #fda536;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer !important;
    transition: all 0.3s ease;
    display: block;
    margin: 40px auto 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 200px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#refresh-recommendations {
    background: #fda536;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer !important;
    transition: all 0.3s ease;
    display: block;
    margin: 40px auto 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 200px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.next-step:hover {
    color: white;
    background: #fda536;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}


/* Budget Selector */

.budget-selector {
    max-width: 600px;
    margin: 0 auto;
}

.range-slider {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.budget-option {
    flex: 1;
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    background-color: #fff;
    margin: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.budget-option:hover {
    background: #F5F9FF;
    border-color: #fda536;
}

.budget-option.selected {
    background: #fff;
    color: #7a2d2d;
    border-color: #fda536;
}

.budget-amount {
    font-size: 18px;
    font-weight: 600;
}


/* Additional styling as needed */


/* Basic modal styles */

#package-modal {
    display: none;
    position: fixed;
    z-index: 1060;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
}


/* Modal backdrop */

.modal-backdrop {
    display: none;
    position: fixed;
    z-index: 999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2) !important;
}


/* Product item styling */

.package-product {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.package-product img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 4px;
}


/* Add hover effect for package products */

.package-product:hover {
    background-color: #f9f9f9;
    /* Light background on hover */
    border-radius: 4px;
}


/* Add product section */

.add-product-section {
    margin-top: 20px;
}


/* Close button styling */

#close-package-modal {
    float: right;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 20px;
}


/* Hide quantity input for custom packages in the mini cart */

.widget_shopping_cart .custom-package-qty {
    display: inline-block;
    font-weight: bold;
}


/* Optionally hide the quantity input field itself for custom packages */

.widget_shopping_cart .quantity input {
    display: none !important;
}


/* Style for the search results in the modal */

#search-results {
    margin-top: 10px;
}


/* Style for search result items */

.search-result {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.search-result img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 4px;
}


/* Button styles for adding to pack */

.add-to-pack-btn {
    background-color: #fda536;
    /* WooCommerce primary color */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.add-to-pack-btn:hover {
    background-color: #fda536;
    /* Darker shade on hover */
}


/* Suggestions styling */

.suggestions {
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}


/* Suggestion item styling */

.suggestion {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.suggestion img {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}


/* Personality Cards Specific Styles */

.personality-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
    position: relative;
}

.personality-card .card-icon {
    font-size: 28px;
    color: #fda536;
    margin-bottom: 15px;
    /*height: 60px;
    width: 60px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.personality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.personality-card h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.selected .card-icon {
    font-size: 32px;
    color: #fff !important;
    margin-bottom: 15px;
}

.selection-card h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.selection-card h4 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.selection-section .section-title {
    text-align: center;
    font-weight: 900;
    color: #333;
}

.selected h3 {
    font-size: 18px;
    color: #7a2d2d !important;
    margin: 0;
}

.elementor-element.elementor-element-b4f133 {
    width: 100% !important;
}

.personalizare-home {
    width: 100% !important;
}

#step-6 h2 {
    text-align: center;
    font-weight: 900;
    color: #333;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .personality-card {
        padding: 20px;
    }
    .personality-card .card-icon {
        width: 100%;
        font-size: 24px;
    }
    .personality-card h3 {
        font-size: 16px;
    }
}


/* Modal Styles */

#change-item-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.packs-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .packs-container {
        padding: 0;
    }
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.pack-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.pack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.pack-card-inner {
    padding: 20px;
}

@media (max-width: 768px) {
    .pack-card-inner {
        padding: 10px;
    }
}

.pack-header h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.pack-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pack-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.pack-volume {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}


/* Updated products list styling */

.pack-products-list {
    margin: 15px 0;
    max-height: 850px;
    height: 850px;
    overflow-y: auto;
}

.package-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.package-product {
    display: flex;
    align-items: center;
    padding: 8px;
    /* border-bottom: 1px solid #eee; */
}

.package-product-wrapper {
    border-bottom: 1px solid #eee;
}

.package-product:last-child {
    border-bottom: none;
}

.package-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 1px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #444A43;
    flex: 1;
    padding-left: 5px;
}

.package-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.add-to-cart-btn,
.edit-package-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn {
    background-color: #642A30;
    color: white;
}

.add-to-cart-btn:hover {
    background-color: #642A30;
    color: white;
}

.edit-package-btn {
    background-color: #f1f1f1;
    color: #333;
}

.edit-package-btn:hover {
    background-color: #e1e1e1;
}


/* Custom scrollbar for products list */

.pack-products-list::-webkit-scrollbar {
    width: 6px;
}

.pack-products-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.pack-products-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.pack-products-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.custom-package-item {
    margin-bottom: 20px;
    /* Add space between custom packages */
}

.sidebar-cart .quantity {
    display: none;
    /* Hides the quantity input fields */
}

.off_mini_cart_title {
    background-color: #f3f6f4;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Added shadow */
    -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Safari */
    -moz-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Firefox */
    align-items: top !important;
}

.widget_shopping_cart_content .custom-package-qty {
    display: none;
}

.ftc-minicart-price {
    width: 100%;
    text-align: center;
    font-weight: 900;
    font-size: 20px;
    padding-top: 10px;
}

.custom-products-list {
    list-style: none;
    /* Removes default bullets */
    padding-left: 0;
    /* Removes default padding */
    margin-bottom: 10px;
    font-size: 14px;
    text-align: left;
}

.custom-products-list li {
    margin-bottom: 5px;
    padding: 3px 0;
}

.custom-products-list .cadou-personalizat {
    font-style: italic;
    color: #666;
}

.product-info {
    position: relative;
}

.info-button {
    cursor: pointer;
    color: #666;
    margin-left: 5px;
    transition: color 0.3s ease;
    width: 100%;
    text-align: center;
}

.info-button:hover {
    color: #000;
}

.info-button.active {
    color: #007bff;
}

.product-description {
    margin-top: 10px;
    padding: 5px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.4;
    color: #666;
    border-left: 1px solid #642a30;
}

@media (max-width: 768px) {
    .product-description {
        width: 99%;
    }
}


/* Responsive layout */

@media (max-width: 1024px) {
    .packs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .packs-grid {
        grid-template-columns: 1fr;
        width: 99%;
        margin: 0 auto;
    }
    .pack-card {
        margin: 0 auto;
        max-width: 99% !important;
    }
    .package-product img {
        width: 64px;
        height: 64px;
    }
    .pack-products-list {
        max-height: 450px;
        height: 450px;
    }
}

.product-actions {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
}

.info-button,
.swap-button {
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: #6a442a;
}

.info-button:hover,
.swap-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.swap-modal {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.swap-modal-content {
    background-color: white;
    padding: 2px;
    border-radius: 8px;
    width: 90%;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    pointer-events: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.alternative-products {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
    gap: 20px;
    margin: 20px 0;
}

.alternative-product {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alternative-product-image {
    width: 80px;
    min-width: 80px;
    margin: 0;
}

.alternative-product-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.alternative-product-details {
    flex: 1;
    min-width: 0;
}

.alternative-product-details h4 {
    font-size: 14px;
    margin: 0 0 5px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-change {
    font-size: 13px;
    font-weight: bold;
    margin: 0;
}

@media (min-width: 768px) {
    .alternative-product {
        flex-direction: column;
        text-align: center;
    }
    .alternative-product-image {
        width: 100%;
        min-width: 100%;
        margin-bottom: 8px;
    }
    .alternative-product-image img {
        height: auto;
    }
    .alternative-product-details h4 {
        white-space: normal;
    }
}

.close-swap-modal {
    display: block;
    margin: 20px auto 0;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.close-swap-modal:hover {
    background-color: #e9ecef;
}

.price-positive {
    color: green;
}

.price-negative {
    color: red;
}


/* Create a new modal wrapper class */

.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.5);
}


/* Prevent body scroll when modal is open */

body.modal-open {
    overflow: hidden;
}

.package-upsell-section {
    width: 100%;
    margin: 15px 0;
    clear: both;
}

.upsell-toggle {
    background: #642a30;
    color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.upsell-content {
    display: none;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-top: 10px;
    position: relative;
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* Ajustări pentru layout-ul cart-ului */

.woocommerce-cart-form__cart-item {
    display: table-row !important;
}

.woocommerce-cart-form__cart-item>td {
    display: table-cell !important;
    vertical-align: middle !important;
}

.woocommerce-cart-form__cart-item>td.product-name {
    position: relative;
}

.package-upsell-section {
    padding: 0 15px;
    margin-top: 10px;
    z-index: 999;
}


/* Restul stilurilor rămân neschimbate */

.upsell-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.flower-option,
.card-design {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flower-option.selected,
.card-design.selected {
    border-color: #fda536;
    background: #f0f7ff;
}

.card-message {
    margin-top: 20px;
}

.predefined-message {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.card-message-input {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.card-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

.midgrag-titlu-personalizare {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 35px !important;
    font-weight: 800 !important;
    line-height: 38px !important;
    margin: 0 auto;
    color: #642a30 !important;
    width: 600px;
    text-align: center;
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 40px;
}

.gift-customizer-wizard h2 {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 35px !important;
    font-weight: 800 !important;
    line-height: 38px !important;
    margin: 0 auto;
    color: #642a30 !important;
    width: 600px;
    text-align: center;
}

.gift-customizer-wizard {
    font-family: "Quicksand", Sans-serif !important;
}


/* Mobile optimization */

@media screen and (max-width: 768px) {
    .midgrag-titlu-personalizare {
        width: 90%;
        /* Use percentage instead of fixed width */
        font-size: 28px !important;
        /* Smaller font size for mobile */
        line-height: 30px !important;
        /* Adjusted line height */
        padding-bottom: 25px;
        /* Reduced padding */
        padding-left: 15px;
        /* Add some side padding */
        padding-right: 15px;
    }
    .step-header h2 {
        font-size: 26px !important;
    }
}


/* Extra small devices */

@media screen and (max-width: 480px) {
    .midgrag-titlu-personalizare {
        font-size: 20px !important;
        /* Even smaller font size for very small devices */
        line-height: 24px !important;
        padding-bottom: 20px;
    }
}

.midrag-extra-wrap {
    width: 100%;
    max-width: 100%;
    margin: 60px auto;
    padding: 20px 0;
    padding-top: 50px;
    padding-bottom: 50px;
    margin-top: 50px;
}

.midrag-extra-wrap-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    padding-left: 50px;
    padding-right: 50px;
}

@media screen and (max-width: 768px) {
    .midrag-extra-wrap-inner {
        padding-left: 5px;
        padding-right: 5px;
    }
}

.midrag-extra-wrap h2 {
    font-family: 'Buffalo', sans-serif !important;
    width: 100% !important;
    text-align: center !important;
    color: #642a30 !important;
    font-size: 70px !important;
    line-height: 1em !important;
    margin: 20px 0;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    margin-bottom: 50px !important;
}


/* Grid layout for the offerings */

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.offering-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.offering-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offering-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offering-title {
    color: #666;
    font-size: 23px;
    line-height: 25px;
    font-weight: 200;
    margin-bottom: 15px;
    font-family: "Quicksand", serif;
}

.offering-subtitle {
    color: #666;
    font-style: italic;
    font-size: 20px;
    line-height: 22px;
    font-family: "Quicksand-Italic", serif;
    font-weight: 200;
}

.offerings-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-column img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .offerings-grid {
        grid-template-columns: 1fr;
    }
    .image-column {
        order: -1;
        /* Places image at top on mobile */
    }
}

.page-id-14882 .site-content-contain .container {
    width: 100% !important;
}

@media (max-width: 768px) {
    .shop_table {
        width: 100%;
        display: block;
    }
    .shop_table thead {
        display: none;
    }
    .shop_table tbody tr {
        display: block;
        margin-bottom: 20px;
        border-bottom: 1px solid #ddd;
    }
    .shop_table tbody tr td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        text-align: left;
    }
    .shop_table tbody tr td:before {
        content: attr(data-title);
        font-weight: bold;
        flex-basis: 40%;
    }
    .shop_table .product-remove {
        text-align: right;
    }
    .woocommerce-cart-form .shop_table .cart_item .product-remove .remove {
        margin-left: 90% !important;
    }
    .shop_table .product-thumbnail {
        text-align: center;
    }
    .shop_table .product-name {
        flex-direction: column;
    }
    .shop_table .product-name ul {
        padding-left: 0;
    }
    .shop_table .product-name ul li {
        list-style: none;
    }
    .cart_totals {
        margin-top: 20px !important;
    }
    .woocommerce-cart .woocommerce .cart-collaterals .cart_totals tbody {
        display: block !important;
    }
    .woocommerce-cart .wc-proceed-to-checkout {
        margin-left: 5px !important;
    }
    /* 1) Override the row itself to behave like a block container */
    tr.custom-package-item {
        display: block !important;
        width: 100% !important;
    }
    /* 2) Override each cell to behave like a block 
        so they stack vertically one after another */
    tr.custom-package-item>td,
    tr.custom-package-item>th {
        display: block !important;
        width: 100% !important;
        margin-bottom: 1em;
        /* optional spacing */
    }
    tr.custom-package-item td.product-thumbnail:before {
        content: none !important;
    }
    /* 1) Make the cart table narrower and responsive */
    table.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents {
        width: auto !important;
        /* Let the table size itself */
        max-width: 97% !important;
        /* Don't exceed the viewport width */
        margin: 0 auto;
        /* Center it (optional) */
        table-layout: auto !important;
    }
    table .shop_table .shop_table_responsive {
        max-width: 97% !important;
        /* Don't exceed the viewport width */
        margin: 0 auto;
        /* Center it (optional) */
        table-layout: auto !important;
    }
    .woocommerce .wc-proceed-to-checkout a.button.alt,
    .woocommerce .wc-proceed-to-checkout a.button {
        max-width: 97% !important;
    }
}

.product-pack-slider {
    width: 100%;
    overflow: hidden;
}

.product-pack-card {
    background: #fff;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 300px;
    /* Adjust width as needed */
}

.product-pack-image img {
    max-width: 100%;
    height: auto;
}

.product-pack-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    width: 300px;
    /* Adjust width as needed */
    margin-left: 30px !important;
}

.product-pack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.product-pack-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    color: #642a30;
    margin: 0;
}

.product-pack-card .subtitle {
    font-family: 'Buffalo', serif;
    font-size: 20px;
    color: #642a30;
    margin: 5px 0;
}

.product-pack-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.product-pack-content {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
    height: 60px;
    /* Adjust this value to fit 2-3 rows of text */
    overflow: hidden;
    /* Ensures text doesn't overflow */
}

.product-pack-price {
    background-color: #fda536;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.product-pack-slider .swiper-slide {
    margin-left: 30px;
}

@media screen and (max-width: 768px) {
    .product-pack-slider .swiper-slide {
        margin-left: 0;
    }
}

.pack-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.pack-product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 10px;
}

.pack-product-card:hover {
    transform: translateY(-5px);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.9em;
    color: #666;
}

@media (max-width: 768px) {
    .pack-products {
        grid-template-columns: 1fr;
    }
}

.pack-price {
    text-align: center;
    font-size: 1.5em;
    /* Adjust the size as needed */
    margin-bottom: 20px;
    margin-top: 50px;
}

.pack-product-card h4 {
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'Quicksand', sans-serif;
    color: #642a30;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .pack-product-card h4 {
        font-size: 18px;
    }
}

.modern-button {
    width: 100% !important;
    padding: 15px;
    font-size: 1.2em;
    /* Adjust the size as needed */
    background-color: #642a30;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, padding 0.3s;
    margin-bottom: 100px;
}

.modern-button:hover,
.modern-button:active,
.modern-button:visited {
    background-color: #7a3a40;
    /* Slightly lighter shade for hover */
    padding: 18px;
    /* Increase padding on hover */
    color: #fff;
}

.pack-content {
    padding-top: 50px;
    padding-bottom: 50px;
    font-size: 18px;
    font-weight: 200;
    font-family: 'Quicksand', sans-serif;
    color: #000;
}

.ftc-breadcrumbs-content .current {
    color: #fff !important;
}

.cart-total {
    background-color: #642a30 !important;
}

.total-count-cart .cart-total {
    color: #fff !important;
}

.ftc-breadcrumbs-content {
    color: #fff !important;
}

.product-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-pack-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.product-pack-image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .product-pack-grid {
        grid-template-columns: 1fr;
    }
}

.product-pack-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.title_product_mini_cart .remove_from_cart_button {
    vertical-align: top !important;
}

.pack-featured-image {
    width: 100%;
    margin: 40px auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pack-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.pack-featured-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.pack-featured-image:hover img {
    transform: scale(1.03);
}

.mini-cart-upsell-section {
    margin-top: 10px;
    font-size: 0.9em;
}

.mini-upsell-toggle {
    cursor: pointer;
    color: #666;
    padding: 5px 0;
}

.mini-upsell-toggle:hover {
    color: #000;
}

.mini-upsell-content {
    padding: 10px 0;
}

.mini-flower-options,
.mini-card-options {
    margin-bottom: 10px;
}

.mini-flower-select,
.mini-card-select {
    width: 100%;
    padding: 5px;
    margin-bottom: 5px;
}

.ftc-breadcrumbs-content {
    display: none !important;
}

.shop_table.cart a.return-shop {
    display: none !important;
}

.return-to-shop a.button.wc-backward {
    display: none !important;
}

.woocommerce-MyAccount-navigation-link--downloads {
    display: none !important;
}

#page-id-607 .woocommerce-account .woocommerce .u-column2.col-2,
.woocommerce-account .woocommerce .u-column1.col-1 {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 40px !important;
}

#page-id-607 .woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 40px !important;
}

.flower-option.selected,
.card-design.selected {
    border: 2px solid #4CAF50;
    position: relative;
}

.flower-option.selected::after,
.card-design.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #4CAF50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.step-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 0 20px;
}

.prev-step,
.next-step {
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.prev-step {
    background-color: #f0f0f0;
    color: #333;
}

.next-step {
    background-color: #7a2d2d;
    color: white;
}

#refresh-recommendations {
    width: 100%;
    background-color: #7a2d2d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}


/* Stilizare pentru elementele selectate */

.selection-card.selected,
.budget-option.selected {
    border: 2px solid #7a2d2d;
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.selection-card,
.budget-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.selection-card:hover,
.budget-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Animație pentru tranziția între pași */

.customizer-step {
    transition: opacity 0.3s ease;
}

.customizer-step[style*="display: none"] {
    opacity: 0;
}

.customizer-step[style*="display: block"] {
    opacity: 1;
}

@media (max-width: 768px) {
    .package-product {
        padding: 4px 0;
        margin-bottom: 6px;
        min-height: 32px;
    }
    .package-product img {
        width: 104px;
        height: 104px;
    }
    .product-name {
        font-size: 14px;
        padding-left: 0;
        margin: 0;
        line-height: 1.2 !important;
        width: 100% !important;
    }
    .product-actions {
        margin-left: 4px;
        gap: 2px;
    }
    .swap-button,
    .info-button {
        font-size: 14px;
        padding: 1px 3px;
    }
}

@media (max-width: 767px) {
    .alternative-product-details {
        max-width: 140px;
        width: 100%;
        white-space: normal;
        overflow: hidden;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    .alternative-product-details h4 {
        font-size: 13px;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
        line-height: 1.2;
    }
    .price-change {
        font-size: 12px;
        margin-top: 0;
    }
    .alternative-product {
        padding: 6px 4px;
    }
}


/* Ascunde butoanele de Wishlist și Compare */

.single-product .add-to-wishlist,
.single-product .yith-wcwl-add-to-wishlist,
.single-product .compare,
.single-product .compare.button,
.single-product .wishlist,
.single-product .wishlist-btn,
.single-product .compare-btn {
    display: none !important;
}

.single-product .ftc_custom_tab {
    display: none !important;
}

.single-product .qty_pricing_tab_tab {
    display: none !important;
}

.single-product .price {
    display: none !important;
}

.package-product a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.package-product a:hover {
    color: #642A30;
}

.package-product .product-image a {
    display: block;
}

.package-product .product-image a:hover img {
    opacity: 0.9;
}