/**
 * New Creator Module - Frontend Styles
 * Organized and deduplicated version
 * Responsive Design: 2 Main Breakpoints
 * 
 * Desktop (>= 1024px):  Default styles below
 * Mobile  (< 1024px):   @media (max-width: 1023px)
 */

/* ============================================================================
   DESKTOP STYLES (>= 1024px - Default)
   ============================================================================ */

/* ============================================================================
   1. SHARED UTILITIES
   ============================================================================ */

/* Transitions */
.creator-tabs a,
.select_project_button,
.chk_container .deselected,
.chk_container .chk_selected,
#save_modal_button,
#sentences_bank {
    transition: all 0.2s ease-in-out;
}

.switch,
.slider,
.slider:before,
input:checked + .slider:before {
    transition: 0.4s;
}

/* Box Shadows */
#project_cover {
    -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.3);
    box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.3);
}

input:focus + .slider {
    box-shadow: 0 0 1px #005E58;
}

/* Gradient - Reusable */
.btn-gradient {
    background-color: #E8E8E8;
    background-image: -moz-linear-gradient(top, #FCFCFC, #E8E8E8);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#FCFCFC), to(#E8E8E8));
    background-image: -webkit-linear-gradient(top, #FCFCFC, #E8E8E8);
    background-image: -o-linear-gradient(top, #FCFCFC, #E8E8E8);
    background-image: linear-gradient(to bottom, #FCFCFC, #E8E8E8);
    background-repeat: repeat-x;
}

.btn-gradient:hover {
    background-color: #E8E8E8;
    background-image: -moz-linear-gradient(top, #F5F5F5, #E8E8E8);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#F5F5F5), to(#E8E8E8));
    background-image: -webkit-linear-gradient(top, #F5F5F5, #E8E8E8);
    background-image: -o-linear-gradient(top, #F5F5F5, #E8E8E8);
    background-image: linear-gradient(to bottom, #F5F5F5, #E8E8E8);
    background-repeat: repeat-x;
}

.moveToCenter{
    transform: translate3d(0, 0, 0)!important;
    opacity: 1;
}

.moveToLeft{
    transform: translate3d(-100%, 0, 0)!important;
    opacity: 0;
}

.moveToRight{
    transform: translate3d(100%, 0, 0)!important;
    opacity: 0;
}

.hidden {
    display: none;
}

/* ============================================================================
   2. CREATOR MODULE - Core Styles
   ============================================================================ */

.creator {
    border: 1px;
}

.creator_wrapper {
    overflow: hidden;
    width: 100%;
}

.creator_wrapper .form-control {
    margin-bottom: 5px;
}

.creator_input {
    font-family: 'Roboto', sans-serif;
    padding: 5px;
    margin: 0 1.2rem;
    width: 90% !important;
    font-size: 15px !important;
    line-height: 21px !important;
    resize: none;
}

select.creator_input {
    font-weight: 400;
}

#select_font {
    font-family: 'Poppins', sans-serif;
    padding: 5px;
    width: 100% !important;
    font-size: 15px !important;
    line-height: 21px !important;
}

/* Creator Info Banner */
.fulledit-info {
    display: flex;
    background-color: red;
    justify-content: center;
    font-size: 0.7rem;
}

/* ============================================================================
   3. VARIANTS & PROJECTS
   ============================================================================ */

.custom_variant {
    cursor: pointer;
    max-width: 100px;
    margin: 5px;
}

.custom_variant.length_5 {
    max-width: 60px !important;
}

.custom_form .custom_variant {
    border: 1px solid #ffffff;
}

.custom_form .custom_variant.selected_variant {
    border: 1px solid #03a9f4;
}

a.change_project {
    display: inline-grid;
    margin: 10px;
    margin-bottom: 0px;
}

.change_project span {
    font-size: 0.8rem;
}

.change_project {
    width: 350px;
}

.change_project hr {
    margin-bottom: 15px;
}

#project_cover {
    float: left;
}

.change_project #project_cover {
    width: 350px;
    display: block;
}

/* ============================================================================
   4. INPUTS & LAYOUT
   ============================================================================ */

.inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#inputs_breakline {
    width: 100%;
    height: 20px;
    display: block;
}

/* ============================================================================
   5. TABS & PROJECT SELECTOR
   ============================================================================ */

.creator-tabs {
    display: block;
    flex-wrap: wrap;
    flex-direction: column;
    line-height: 1.2rem;
    align-items: center;
    margin: auto;
    cursor: pointer;
    /* margin-bottom: 10px; */
}

#tabs_line {
    position: static;
    margin-top: -21px;
    margin-bottom: 20px;
    border-color: #e0e0e0;
}

.creator-tabs .nav-item {
    display: flex;
    margin-left: 0px !important;
    width: 100%;
    justify-content: center;
    border-radius: 0.3rem;
}

.creator-tabs a {
    display: flex;
    text-transform: uppercase;
    background-color: #e2e2e2;
    padding: 5px 15px !important;
    font-size: 14px;
    margin-top: 1rem;
}

.creator-tabs a:hover {
    color: #666;
}

/* Labels */
.customize_label,
.customized_label_check {
    font-weight: 500;
    font-size: 0.5rem;
}

.customize_label {
    color: #a51e1e;
}

.customize_label > i,
.customized_label_check > i {
    margin-top: 0.3rem;
    margin-right: 0.2rem;
}

.customized_label_check {
    color: #1a5450;
}

.customized {
    border-radius: 0.4rem;
    border-bottom: 0.2rem solid #257D77;
}

/* ============================================================================
   6. BUTTONS - Consolidated (was 3 separate classes)
   ============================================================================ */

.select_project_button,
#save_modal_button,
#sentences_bank {
    font-family: 'Lato', sans-serif;
    margin: auto;
    border-radius: 5px;
    line-height: 0.6rem;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid #ebebeb;
    font-size: 0.85rem;
    text-transform: uppercase;
}

@media screen and (max-width: 1023px) {
    .select_project_button {
        display: flex;
        justify-content: center;
        /* z-index: 2; */
        width: 40%;
        /* margin-top: -11px; */
        padding: 0.3rem;
        font-size: 0.65rem;
        background-color: #E8E8E8;
        background-image: linear-gradient(to bottom, #FCFCFC, #E8E8E8);
    }

    .select_project_button:hover {
        background-color: #E8E8E8;
        background-image: linear-gradient(to bottom, #F5F5F5, #E8E8E8);
    }
}

@media screen and (min-width:1024px) {
    .select_project_button {
        width: max-content;
        margin-top: 10px;
        margin-bottom: 7px;
        padding: 0.5rem;
    }

    .select_project_button p {
        display: none;
        margin: 0px;
        margin-top: 6px;
        font-size: 12px;
    }
}

#save_modal_button {
    width: 40%;
    margin-top: -17px;
    padding: 7px;
}

#save_modal_button:hover {
    background-color: #b9c2d3;
    border-color: #b9c2d3;
    color: black;
}

#sentences_bank {
    display: flex;
    justify-content: center;
    z-index: 2;
    width: 40%;
    margin-top: -11px;
    padding: 0.3rem;
    font-size: 0.65rem;
}

/* Apply gradient to buttons */
#save_modal_button,
#sentences_bank {
    background-color: #abb2b8;
}

#save_modal_button,
#sentences_bank {
    background-color: #E8E8E8;
    background-image: -moz-linear-gradient(top, #FCFCFC, #E8E8E8);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#FCFCFC), to(#E8E8E8));
    background-image: -webkit-linear-gradient(top, #FCFCFC, #E8E8E8);
    background-image: -o-linear-gradient(top, #FCFCFC, #E8E8E8);
    background-image: linear-gradient(to bottom, #FCFCFC, #E8E8E8);
    background-repeat: repeat-x;
}

#sentences_bank:hover {
    background-color: #E8E8E8;
    *background-color: #003bb3;
    background-image: -moz-linear-gradient(top, #F5F5F5, #E8E8E8);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#F5F5F5), to(#E8E8E8));
    background-image: -webkit-linear-gradient(top, #F5F5F5, #E8E8E8);
    background-image: -o-linear-gradient(top, #F5F5F5, #E8E8E8);
    background-image: linear-gradient(to bottom, #F5F5F5, #E8E8E8);
    background-repeat: repeat-x;
}

/* ============================================================================
   7. DRAWERS & OVERLAYS
   ============================================================================ */

@media screen and (min-width: 1024px){
    #without_grawer{
        text-align: center;
        margin-top: 8px;
        margin-bottom: 5px;
        width: 100%;
        font-size: 13px;
        /* float: left; */
    }
}

@media screen and (max-width: 1023px){
    #without_grawer{
        width: 100%;
        text-align: center;
        margin-top: 8px;
        margin-bottom: 5px;
        width: 100%;
        font-size: 13px;
        /* float: left; */
    }

    #without_grawer .chk_container{
        float: right;
        /* margin-right: 10px; */
        margin-top: -25px;
        padding-right: 5px;
        border: 1px solid rgb(197 197 197) !important;
        border-radius: 10px !important;
        background-color: #f7f7f7 !important;
    }
}



#without_grawer .switch {
    font-size: 13px;
    margin-right: 15px;
    margin-top: 6px;
}

#show_grawer {
    display: none;
}

/* ============================================================================
   8. SWITCH / TOGGLE CONTROL
   ============================================================================ */

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 18px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 0px;
    top: -1px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    border: 1px solid #ccc;
}

input:checked + .slider {
    background-color: #005E58;
}

input:focus + .slider {
    box-shadow: 0 0 1px #005E58;
    border-color: #005E58;
}

input:checked + .slider:before {
    -webkit-transform: translateX(11px);
    -ms-transform: translateX(11px);
    transform: translateX(11px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ============================================================================
   9. CHECKBOX STYLING
   ============================================================================ */

.chk_container {
    margin: 0px;
    cursor: pointer;
}

.chk_container input {
    display: none;
}

.chk_container p {
    float: left;
    padding-top: 2px;
    font-weight: 400;
    margin: 0px;
}

.chk_container .deselected,
.chk_container .chk_selected {
    display: inline-block;
    width: 20px;
    height: 20px;
    left: 0;
    top: 0;
    margin: 6px;
    float: left;
}

.chk_container .deselected {
    background-color: #ccc;
}

.chk_container .chk_selected {
    background-color: #257D77;
    color: white;
    padding: 4px;
    font-size: 12px;
}

.chk_container:hover .deselected {
    background-color: #808080;
    transition: background-color 1s;
}

/* ============================================================================
   10. ERROR ALERTS
   ============================================================================ */

.error-alert div {
    border: 1px solid red;
    padding: 10px;
    color: red;
    font-size: 0.7em;
}

.error-alert div span {
    color: rgb(110, 110, 110);
    font-size: 1.2em;
    font-weight: bold;
}

.error-alert div ul {
    padding-left: 10px;
    list-style-type: decimal;
}

.error_color {
    background-color: #ff9a9a !important;
}

/* ============================================================================
   11. MODALS & DIALOGS
   ============================================================================ */

#projects_modal .modal-dialog {
    max-width: 1260px;
}

.modal-dialog .creator_modal {
    max-width: 650px !important;
}

.modal-content {
    margin: auto;
    border: 3px solid #59626b;
    padding: 10px;
}

.modal-body {
    padding: 0px;
    padding-top: 15px !important;
    margin: auto !important;
}

.modal-title {
    text-align: center;
}

.products_groups_modal .modal-body .content-wrapper{
    overflow: hidden;
    height: 100%;
}

.products_groups_modal .modal-body .content-wrapper .product-list{
    height: 100%;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    transition: transform .4s ease;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.products_groups_modal .modal-body .content-wrapper .selected-element-container{
    backface-visibility: hidden;
    top: -100%;
    width: 100%;
    transform: translate3d(100%, 0 ,0);
    transition: transform .4s ease;
    position: relative;
    overflow-y: auto;
    height: 100%;
}

.products_groups_modal .modal-footer .product-nav-wrapper{
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ============================================================================
   12. MODAL TABLES & PROJECT CARDS
   ============================================================================ */

.modal_table {
    width: 33%;
    display: inline-block;
    border-radius: 15px;
    padding: 5px;
    max-height: 60px;
}

.modal_table a {
    width: 100%;
    border: 2px solid #abb2b8;
    border-radius: 7px;
    background-color: #59626b;
    background-image: linear-gradient(to bottom, #737373, #8d8d8d);
    display: block;
    cursor: pointer;
}

.modal_table a:hover {
    background-color: #808991;
    background-image: linear-gradient(to bottom, #737373, #d8cbcb);
}

.modal_table a h4 {
    border: 1px solid white;
    border-radius: 5px;
    color: white;
    padding: 10px;
    margin-bottom: 0px;
    font-family: 'Times New Roman', 'Palatino,Serif';
    text-transform: uppercase;
    font-size: 19px;
}

.product-information .project span {
    cursor: pointer;
}

.arrow {
    position: absolute;
    font-size: 25px;
    color: white;
    right: 5px;
    top: 5px;
}

/* ============================================================================
   13. FEAST/PROJECT NAMING
   ============================================================================ */

.name_of_feast {
    margin-top: -28px;
    text-align: center;
    font-size: 25px;
    font-family: 'Cinzel', serif;
}

.change_sentence {
    float: left !important;
    width: 95%;
    text-align: -webkit-center;
    text-align: center;
    margin: 10px;
}

.change_sentence hr {
    height: 50px;
    border-top: 0px;
}

/* Tabliczki variant */
.tabliczki .modal-content {
    max-width: 100% !important;
}

.tabliczki .modal-content a {
    width: 350px;
}

.tabliczki .modal-body {
    text-align: -webkit-center;
    text-align: center;
}

.tabliczki {
    max-width: 1260px !important;
}

.highlight_true a {
    background-color: #b81f1f !important;
    background-image: none !important;
}

/* ============================================================================
   14. IMAGE GALLERY & SLIDER
   ============================================================================ */

.images-slider {
    margin-right: 20px;
    padding-top: 10px;
    width: 100px;
}

.images-slider img {
    border-left: 3px solid #ffffff;
    padding-left: 3px !important;
}

.images-slider img.selected {
    border-left: 3px solid #005E58;
    transition: all 300ms ease 0s;
}

.btn.slide-images {
    border-radius: 3px;
    display: block;
    height: 17px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 5px;
    padding-top: 5px;
    width: 100%;
}

.btn.slide-images:focus {
    outline: none;
}

.slide-images i {
    margin-top: -15px;
}

.thbViewerContainer {
    overflow: hidden;
}

.thbviewer {
    position: relative;
    transition: all 300ms ease 0s;
}

/* ============================================================================
   15. PRODUCT LAYOUT
   ============================================================================ */

.pts-product {
    margin-left: 4%;
    margin-right: 4%;
}

.continue-btn {
    width: 100%;
    font-size: 1.2rem !important;
    padding: 0.8rem !important;
    margin-top: 1rem;
}

.save-creator-locked {
    background-image: linear-gradient(to bottom, #333, #999) !important;
}

.active_size_table {
    width: 50% !important;
    display: inline-block;
    text-align: center;
}

.stretch li {
    width: 100%;
    text-align: center;
}

/* ============================================================================
   16. DELIVERY SECTION
   ============================================================================ */

.supplier {
    border-top: 1px solid #ebebeb;
    margin-top: 10px;
}

.firstSupp {
    margin-top: 0px;
}

.delivery_type {
    padding-top: 10px;
}

.deliveryHead {
    width: 100%;
    float: left;
}

.delivery_type span {
    color: grey;
    font-size: 0.8rem;
    padding-left: 8px;
}

.delivery_type u {
    color: #1a6a5c;
}

.dPrice,
.dTime {
    text-align: center;
}

.dImage img {
    max-height: 55px;
}

.dPrice {
    font-family: 'Roboto';
    text-align: center;
    font-size: 18px;
    font-weight: 300;
}

.dPrice p,
.dTime p,
.dDescription p {
    margin: 0px;
    line-height: 0.8rem;
    padding-top: 0.5rem;
}

.dExpected {
    font-size: 0.7rem;
    color: grey;
    text-align: center;
    padding-right: 30px;
    margin-top: 4px;
}

#delivery_block h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 1.15rem;
    display: inline;
    margin-bottom: 0px;
    text-transform: uppercase;
}

.freeShip {
    width: 100%;
    float: left;
}

.dImage p {
    display: none;
}

/* ============================================================================
   17. CONTACT SECTION
   ============================================================================ */

#contact_tab_header {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    line-height: 1.1;
    text-transform: uppercase;
    font-size: 1.15rem;
    padding-top: 18px;
}

.contactIcons {
    text-align: center;
    margin-top: 20px;
}

.contactIcons p {
    text-transform: uppercase;
    font-size: 0.9rem;
}

.contactIcons a {
    font-weight: bold;
}

.contactIcons a:hover,
.contactIcons a:focus {
    color: black;
}

.contactIcons img {
    width: 40px;
}

.contactIcons b {
    font-family: 'Poppins';
    font-size: 1rem;
}

/* ============================================================================
   18. AMAZON CREATOR & ADDITIONAL CUSTOMIZATION
   ============================================================================ */

#selected_feast,
#select_feast {
    float: left;
}

#blockcart-modal .modal-content {
    max-width: 400px !important;
}

.tableRowAmazonCreatorLeft {
    background-color: lightblue;
    width: 25%;
}

#flatContainer {
    width: 75%;
    font-size: 0.8rem;
    text-align: center;
}

#amazonCreator {
    display: flex;
    justify-content: center;
    flex-grow: 0;
}

#additionalCreator {
    display: flex;
    flex-direction: column;
}

#additionalCreator img,
#additionalCreator table {
    align-self: center;
}

#additionalCreator td {
    white-space: pre;
}

#customizationContainer {
    border: 0;
    padding: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN - PRIMARY BREAKPOINT: 1024px
   ============================================================================
   
   Design Strategy:
   • Desktop (>= 1024px): Default styles (no media query)
   • Mobile  (< 1024px):  @media (max-width: 1023px)
   
   ============================================================================ */

/* Mobile & Tablet devices (Below 1024px) */
@media screen and (max-width: 1023px) {
    
    /* Creator Layout */
    .creator__no-margins {
        margin-left: 0px;
        margin-right: 0px;
        padding-left: 0px;
        padding-right: 0px;
    }

    .save-creator--hide {
        display: none;
    }

    /* Product Container */
    .pts-product {
        margin-left: 0px;
        margin-right: 0px;
    }

    /* Inputs & Forms */
    .inputs:has(div) {
        border: 1px solid rgb(197 197 197) !important;
        border-radius: 10px !important;
        background-color: #f7f7f7 !important;
        padding-bottom: 20px !important;
        margin: 5px;
    }

    .creator_input {
        border-radius: 5px !important;
        border-color: rgb(197 197 197) !important;
    }

    /* Drawers */
    #show_grawer {
        display: flex;
        width: 100%;
        text-align: center;
        margin-top: 8px;
        margin-bottom: 5px;
        font-size: 13px;
        font-weight: 400;
    }

    #show_grawer > div {
        width: 100%;
        padding: 0.4rem;
        margin-bottom: 1rem;
    }

    /* Modal & Tables */
    .modal_table {
        width: 100%;
        float: left !important;
    }

    .modal_table a h4 {
        font-size: 14px;
    }

    .modal-content {
        width: auto;
    }

    .arrow {
        display: none;
    }

    /* Project Selection */
    .change_project #project_cover {
        width: 100%;
        display: block;
        object-fit: cover;
    }

    .change_project {
        width: 70vw;
        object-fit: cover;
    }

    /* Delivery Section - Mobile Optimization */
    .delivery_type {
        margin-bottom: 10px;
        padding-top: 10px;
        border: 0px;
        text-align: center;
    }

    .freeShip {
        display: contents;
    }

    .dExpected {
        display: none;
    }

    .deliveryHead .col-md-9 {
        text-align: center;
        margin: 10px;
    }

    .dImage img {
        max-height: 75px;
        border: 1px solid #ebebeb;
        border-left: 0px;
        border-right: 0px;
        margin: 50px 0px 10px 0px;
    }

    .firstSupp .dImage img {
        margin: 10px 0px;
    }

    .delivery_type span {
        padding-left: 0px;
    }

    .dImage p {
        display: block;
        color: #ebebeb;
    }

    /* Project Naming */
    .name_of_feast {
        margin-top: 10px;
    }

}
