/*
Theme Name:Child Theme for Divi
Theme URI: https://wp-ninja.net
Description: Child Theme For Divi
Author: Eduard Ungureanu
Author URI: https://wp-ninja.net
Template: Divi
*/

/* Start your custom CSS bellow this comment
============================================ */


#top-header #et-secondary-menu a.et-cart-info .et-cart-count:before{
    display: none;
}

#top-header #et-secondary-menu a.et-cart-info{
    position: relative;
}

#top-header #et-secondary-menu a.et-cart-info span.et-cart-count{
    background: #ff5959;
    color: #fff;
    padding: 2px 5px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 12px;
}





/* Kontener custom dropdown */
#top-header .custom-gt-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-family: sans-serif;
  font-size: 14px;
}

/* Wyświetlany wybrany język */
#top-header .custom-gt-dropdown .selected {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #000;
}

#top-header .custom-gt-dropdown .selected img{
    max-width: 20px;
}

/* Strzałka */
#top-header .custom-gt-dropdown .arrow {
  margin-left: 5px;
  border: solid #555;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

/* Lista rozwijana */
#top-header .custom-gt-dropdown ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 5px 0;
  list-style: none;
  border: 1px solid #ccc;
  background: #fff;
  z-index: 9999;
  min-width: 60px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Pojedynczy język w li */
#top-header .custom-gt-dropdown ul li {
  padding: 5px 10px;
  cursor: pointer;
  color: #000;
}

/* Hover */
#top-header .custom-gt-dropdown ul li:hover {
  background: #f0f0f0;
}

/* Otwarty stan */
#top-header .custom-gt-dropdown.open .arrow {
  transform: rotate(-135deg);
}

#top-header .custom-gt-dropdown.open ul {
  display: block;
}

#top-header .gtranslate_wrapper a.glink{
    display: none!important;
}

#top-header .gtranslate_wrapper{
    float: right;
    margin-left: 30px;
    margin-bottom: 10px;
}




@media (max-width: 980px) {
  #top-header #et-secondary-nav, 
  #top-header #et-secondary-menu {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    min-height: 36px;
  }

  #top-header #et-secondary-nav{
    margin-right: 20px;
  }

  #top-header #et-secondary-nav li a{
    padding-bottom: 0;
  }

  #top-header .gtranslate_wrapper{
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  #top-header #et-info .et-social-icons {
    display: inline-block !important;
  }

  #top-header #et-secondary-nav, 
  #top-header #et-secondary-menu {
    justify-content: center;
  }

  #top-header #et-secondary-menu .et_duplicate_social_icons{
    display: none;
  }
}







body.nauka-template-default footer#main-footer #footer-widgets .footer-widget .widget_nav_menu ul.menu li,
footer#main-footer #footer-widgets .footer-widget .widget_nav_menu ul.menu li{
    padding-left: 0;
}

body.nauka-template-default footer#main-footer #footer-widgets .footer-widget .widget_nav_menu ul.menu li:before,
footer#main-footer #footer-widgets .footer-widget .widget_nav_menu ul.menu li:before{
    display: none;
}








/* Kontener ilości */
.woocommerce div.quantity,
.et-db #et-boc .et-l .et_pb_wc_add_to_cart .quantity {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Ukryj strzałki w input type number */
.woocommerce div.quantity input::-webkit-outer-spin-button,
.woocommerce div.quantity input::-webkit-inner-spin-button,
.et-db #et-boc .et-l .et_pb_wc_add_to_cart .quantity input::-webkit-outer-spin-button,
.et-db #et-boc .et-l .et_pb_wc_add_to_cart .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.woocommerce div.quantity input[type=number],
.et-db #et-boc .et-l .et_pb_wc_add_to_cart .quantity input[type=number] {
    -moz-appearance: textfield !important;
    padding-left: 35px !important;
    padding-right: 35px !important;
    text-align: center !important;
    width: auto !important;
    max-width: 130px !important; /* zachowanie Divi */
}

/* Przycisk minus */
.qty-button-minus,
.qty-button-plus {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 30px !important;
    border: 1px solid #ccc !important;
    background: #f0f0f0 !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
}

/* Minus po lewej */
.qty-button-minus {
    left: 0 !important;
    border-radius: 4px 0 0 4px !important;
}

/* Plus po prawej */
.qty-button-plus {
    right: 0 !important;
    border-radius: 0 4px 4px 0 !important;
}


.woocommerce div.product form.cart .variations td, 
.woocommerce div.product form.cart .variations th {
  line-height: 2.4em;
}

.et-db #et-boc .et-l .et_pb_wc_add_to_cart form.cart .variations td.value span::after{
    display: none;
}

.et-db #et-boc .et-l .et_pb_wc_add_to_cart form.cart .variations td select {
  padding: 10px 20px;
}


.single_variation_wrap{
    border-bottom: 2px solid #ccc;
    padding-bottom: 30px;
}





.post-type-archive-nauka h2.entry-title{
	min-height: 100px;
}

/* Wykropkowanie nagłówków w blogu */
.post-type-archive-nauka h2.entry-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* maksymalnie 3 linie tekstu */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.et-db #et-boc .et-l .et_pb_with_border.et_pb_posts .et_pb_post{
    background-color: #FFF;
    box-shadow: 0px 4px 15px -6px rgba(0,0,0,0.2);
    break-inside: avoid;
}

.et-db #et-boc .et-l .et_pb_with_border.et_pb_posts .et_pb_post h2.entry-title{
    padding: 0px 30px 30px 30px;
}


.et_pb_shop ul.products.columns-2 li.product{
    background-color: #FFF;
    box-shadow: 0px 4px 15px -6px rgba(0,0,0,0.2);
    padding-bottom: 30px;
}

@media (max-width: 980px) {
    .et_pb_shop ul.products.columns-2 li.product{
        width: 100%!important;
        margin-right: 0!important;
    }
}





/* SCrollable Table */

.et_pb_module.dvmd_table_maker .et_pb_module_inner{
    overflow-x: scroll;
}

.et_pb_module.dvmd_table_maker .et_pb_module_inner .dvmd_tm_table{
    width: 100%;
    min-width: 600px;
}


body.single:not(.et_pb_pagebuilder_layout) 
.et_section_regular.et_pb_section_1_tb_body 
.et_pb_post_content h2,
body.single:not(.et_pb_pagebuilder_layout) 
.et_section_regular.et_pb_section_1_tb_body 
.et_pb_post_content h3,
body.single:not(.et_pb_pagebuilder_layout) 
.et_section_regular.et_pb_section_1_tb_body 
.et_pb_post_content h4 {
    margin-top: 10px;
    /*margin-bottom: 2.75%;*/
}


body.single:not(.et_pb_pagebuilder_layout) 
.et_section_regular.et_pb_section_1_tb_body 
.et_pb_post_content h2{
    font-size: 28px;
}

body.single:not(.et_pb_pagebuilder_layout) 
.et_section_regular.et_pb_section_1_tb_body 
.et_pb_post_content h3{
    font-size: 25px;
}

body.single:not(.et_pb_pagebuilder_layout) 
.et_section_regular.et_pb_section_1_tb_body 
.et_pb_post_content h3{
    font-size: 25px;
}

body.single:not(.et_pb_pagebuilder_layout) 
.et_section_regular.et_pb_section_1_tb_body 
.et_pb_post_content h4{
    font-size: 22px;
}

body.single ul.wp-block-list p{
    display: none;
}

.single-nauka #footer-menu .fwidget.et_pb_widget.widget_nav_menu,
.archive.post-type-archive-nauka #footer-menu .fwidget.et_pb_widget.widget_nav_menu,
footer .fwidget.et_pb_widget.widget_nav_menu{
	margin-bottom: 0px !important;
}

.single-nauka #footer-menu #politics-rules,
.archive.post-type-archive-nauka #politics-rules{
    padding: 0px !important;
}

.single-nauka #politics-rules .et_pb_row,
.archive.post-type-archive-nauka #politics-rules .et_pb_row{
    padding: 15px 0px;
}

.single-nauka #politics-rules .widget_nav_menu,
.archive.post-type-archive-nauka #politics-rules .widget_nav_menu{
    margin-bottom: 0px !important;
}



.single-nauka #politics-rules .fwidget.et_pb_widget.widget_nav_menu,
.archive.post-type-archive-nauka #politics-rules .fwidget.et_pb_widget.widget_nav_menu,
footer #politics-rules .fwidget.et_pb_widget.widget_nav_menu{
	margin-right: 0px !important;
	width: 100% !important;
}


.single-nauka #politics-rules .fwidget.et_pb_widget.widget_nav_menu ul.menu li,
.archive.post-type-archive-nauka #politics-rules .fwidget.et_pb_widget.widget_nav_menu ul.menu li,
footer #politics-rules .fwidget.et_pb_widget.widget_nav_menu ul.menu li{
	font-weight: 600;
	display: inline-block;
	font-size: 14px;
	padding-right: 22px;
	margin-bottom: 0px;
}


.single-nauka #politics-rules .fwidget.et_pb_widget.widget_nav_menu ul.menu li a,
.archive.post-type-archive-nauka #politics-rules .fwidget.et_pb_widget.widget_nav_menu ul.menu li a,
footer #politics-rules .fwidget.et_pb_widget.widget_nav_menu ul.menu li a{
	color: #bbb !important;
}

footer #copyright a{
	color: #666;
}


.single-nauka #copyright,
.archive.post-type-archive-nauka #copyright{
    padding: 0px !important;
}

.single-nauka #copyright span.et-pb-icon,
.archive.post-type-archive-nauka #copyright span.et-pb-icon{
    font-size: 16px;
}

@media (max-width: 990px) {
    .single-nauka footer #copyright #social-media-icons,
    footer #copyright #social-media-icons{
        text-align: left !important;
    }
}


.archive.post-type-archive-nauka #footer-menu h4{
    font-size: 26px !important;
}




/* Główny kontener tabeli */
.awdr-bulk-customizable-table {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

/* Sama tabela */
.awdr-bulk-customizable-table table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Nagłówek tabeli */
.awdr-bulk-customizable-table thead {
    background-color: #4a90e2;
    color: #fff;
    text-align: left;
}

.awdr-bulk-customizable-table th {
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #357ABD;
}

/* Wiersze tabeli */
.awdr-bulk-customizable-table tbody tr {
    background-color: #fff;
    transition: background-color 0.3s;
}

.awdr-bulk-customizable-table tbody tr:nth-child(even) {
    background-color: #f6f8fa;
}

.awdr-bulk-customizable-table tbody tr:hover {
    background-color: #e1f0ff;
}

/* Komórki */
.awdr-bulk-customizable-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e4e8;
}

/* Dodatkowe style dla kolumny z rabatem */
.wdr_table_discounted_value {
    font-weight: bold;
    color: #27ae60;
}

.wdr_table_discounted_price {
    font-size: 0.9em;
    color: #555;
}

/* Responsywność */
@media (max-width: 768px) {
    .awdr-bulk-customizable-table table, 
    .awdr-bulk-customizable-table thead, 
    .awdr-bulk-customizable-table tbody, 
    .awdr-bulk-customizable-table th, 
    .awdr-bulk-customizable-table td, 
    .awdr-bulk-customizable-table tr {
        display: block;
    }

    .awdr-bulk-customizable-table thead tr {
        display: none;
    }

    .awdr-bulk-customizable-table tbody tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }

    .awdr-bulk-customizable-table td {
        padding: 10px;
        text-align: right;
        position: relative;
    }

    .awdr-bulk-customizable-table td::before {
        content: attr(data-colindex);
        position: absolute;
        left: 15px;
        font-weight: bold;
        text-transform: uppercase;
    }
}

















/* BLOG POST */
body.post-template-default.et-db #et-boc .et-l .et_pb_row #blog-main-content{
    padding: 54px 50px;
    background-color: #FFF;
}

@media (max-width: 1024px) {
    body.post-template-default.et-db #et-boc .et-l .et_pb_row #blog-main-content{
        padding: 0px 30px;
    }
}
/* NAUKA POST */

body.nauka-template-default{

}



body.nauka-template-default.et-db #et-boc .et-l .et_pb_row #nauka-main-content{
    padding: 54px 50px;
    background-color: #FFF;
}

@media (max-width: 1024px) {
    body.nauka-template-default.et-db #et-boc .et-l .et_pb_row #nauka-main-content{
        padding: 0px 30px;
    }
}

/*body.nauka-template-default #nauka-main-content .et_pb_module.et_pb_text.et_pb_text_0,
body.nauka-template-default #nauka-main-content .et_pb_section_0{
    display: none;
}*/



body.nauka-template-default.et-db #et-boc .et-l .et_pb_row #nauka-main-content .et_pb_section,
body.nauka-template-default.et-db #et-boc .et-l .et_pb_row #nauka-main-content .et_pb_section .et_pb_row{
    padding: 0px;
}
body.nauka-template-default.et-db #et-boc .et-l .et_pb_row #nauka-main-content .et_pb_row{
    width: 100%;
}


































/*  affiliate  */

/* ====== PODSTAWOWE FLEX ====== */
#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs {
    display: flex;
    flex-wrap: wrap; /* na desktop mogą się zawijać jeśli za dużo */
    gap: 8px;
    padding: 0;
    margin: 0 0 30px 0;
    list-style: none;
    border-bottom: 1px solid #2EA3F2;
}

/* Pojedyncza zakładka */
#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li {
    margin: 0;
}

/* Link w zakładce */
#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li a {
    display: inline-block;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-radius: 6px 6px 0 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    transition: all 0.2s ease-in-out;
}

/* Aktywna zakładka */
#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li.active a {
    background: #2EA3F2;
    color: #fff;
    border-color: #2EA3F2;
}

/* Hover */
#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li a:hover {
    background: #f5f7fa;
    color: #000;
}

/* Log out wizualnie wyróżniony */
#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li:last-child a {
    color: #a00;
}
#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li:last-child a:hover {
    background: #fff0f0;
    color: #d00;
}

/* ====== RESPONSYWNOŚĆ ====== */
@media (max-width: 768px) {
    #affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs {
        flex-wrap: nowrap; /* jedna linia */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li {
        flex: 0 0 auto; /* nie zawijaj */
    }

    #affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li a {
        white-space: nowrap; /* tekst nie zawija się */
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Scrollbar dla lepszego UX na mobile */
    #affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs::-webkit-scrollbar {
        height: 6px;
    }
    #affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs::-webkit-scrollbar-thumb {
        background-color: rgba(46,163,242,0.5);
        border-radius: 3px;
    }
}





/* ====== OGÓLNY WRAPPER ====== */
#affwp-affiliate-dashboard-url-generator {

}

/* ====== KARTY ====== */
#affwp-affiliate-dashboard .affwp-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* ====== HEADER KART ====== */
#affwp-affiliate-dashboard .affwp-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e6e6e6;
}

#affwp-affiliate-dashboard .affwp-card__header h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

#affwp-affiliate-dashboard .affwp-card__header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Tooltip icon */
#affwp-affiliate-dashboard .affwp-card__tooltip svg {
    width: 22px;
    height: 22px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

#affwp-affiliate-dashboard .affwp-card__tooltip:hover svg {
    color: #2EA3F2;
}

/* ====== CONTENT ====== */
#affwp-affiliate-dashboard .affwp-card__content {
    padding: 24px;
}

/* ====== AFFILIATE LINK DISPLAY ====== */
.affwp-affiliate-link__display {
    display: flex;
    gap: 12px;
}

.affwp-affiliate-link__input {
    height: 48px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    background: #f9f9f9;
}

/* Copy button */
.affwp-affiliate-link-copy-link.button {
    height: 48px;
    padding: 0 22px;
    border-radius: 6px;
    background: #2EA3F2;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.affwp-affiliate-link-copy-link.button:hover {
    background: #1d8ed8;
}

.affwp-affiliate-link-copy-link.button:active {
    transform: scale(0.97);
}

/* ====== FORM INPUTS ====== */
#affwp-affiliate-dashboard label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

#affwp-affiliate-dashboard input[type="url"],
#affwp-affiliate-dashboard input[type="text"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    background: #fff;
    font-size: 14px;
}

#affwp-affiliate-dashboard input:focus {
    outline: none;
    border-color: #2EA3F2;
    box-shadow: 0 0 0 2px rgba(46, 163, 242, 0.15);
}

/* ====== ADD CAMPAIGN LINK ====== */
#affwp-generator-toggle-campaign {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #2EA3F2;
    font-weight: 500;
    text-decoration: none;
}

#affwp-generator-toggle-campaign:hover {
    text-decoration: underline;
}

/* ====== FOOTER + SUBMIT ====== */
.affwp-card__footer {
    padding: 20px 24px;
    border-top: 1px solid #e6e6e6;
    background: #fafafa;
    text-align: right;
}

#affwp-generator-submit-btn.button {
    height: 46px;
    padding: 0 26px;
    border-radius: 6px;
    background: #2EA3F2;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

#affwp-generator-submit-btn.button:hover {
    background: #1d8ed8;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .affwp-affiliate-link__display {
        flex-direction: column;
    }

    .affwp-card__footer {
        text-align: center;
    }
}


#affwp-affiliate-dashboard .affwp-tab-content h4 {
    margin: 30px 0 12px;
    font-size: 24px;
    font-weight: 600;
    color: #2EA3F2;
    position: relative;
}




/* Ogólny wrapper formularza */
#affwp-graphs-filter {
    margin-bottom: 30px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

/* Flex dla górnej nawigacji */
#affwp-graphs-filter .tablenav.top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Select box */
#affwp-graphs-filter select.affwp-graphs-date-options {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    background: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#affwp-graphs-filter select.affwp-graphs-date-options:focus {
    border-color: #2EA3F2;
    box-shadow: 0 0 0 2px rgba(46, 163, 242, 0.15);
    outline: none;
}

/* Data pickery */
#affwp-date-range-options input.affwp-datepicker {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    width: 140px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#affwp-date-range-options input.affwp-datepicker:focus {
    border-color: #2EA3F2;
    box-shadow: 0 0 0 2px rgba(46, 163, 242, 0.15);
    outline: none;
}

/* Labels wewnątrz daty */
#affwp-date-range-options span {
    font-size: 14px;
    margin-right: 6px;
    color: #666;
}

/* Przyciski */
#affwp-graphs-filter input.button#submit {
    padding: 10px 24px;
    border-radius: 6px;
    background: #2EA3F2;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

#affwp-graphs-filter input.button#submit:hover {
    background: #1d8ed8;
}

#affwp-graphs-filter input.button#submit:active {
    transform: scale(0.97);
}

/* Responsywność */
@media (max-width: 768px) {
    #affwp-graphs-filter .tablenav.top {
        flex-direction: column;
        align-items: stretch;
    }

    #affwp-graphs-filter select.affwp-graphs-date-options,
    #affwp-date-range-options input.affwp-datepicker,
    #affwp-graphs-filter input.button#submit {
        width: 100%;
    }

    #affwp-date-range-options span {
        display: block;
        margin-bottom: 6px;
    }
}



/* ====== WRAPPER FORMULARZA ====== */
#affwp-affiliate-dashboard-profile {

}

/* ====== KARTY / SEKCJE ====== */
#affwp-affiliate-dashboard-profile .affwp-form {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}


/* ====== WRAPS / LABEL + INPUT ====== */
.affwp-wrap {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.affwp-wrap label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

/* Input email */
.affwp-wrap input[type="email"],
.affwp-wrap input[type="text"],
.affwp-wrap input[type="url"] {
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    background: #f9f9f9;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.affwp-wrap input:focus {
    outline: none;
    border-color: #2EA3F2;
    box-shadow: 0 0 0 2px rgba(46, 163, 242, 0.15);
}

/* ====== CHECKBOX ====== */
.affwp-wrap.affwp-send-notifications-wrap {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.affwp-wrap.affwp-send-notifications-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2EA3F2; /* nowoczesny kolor checkboxa */
    cursor: pointer;
}

.affwp-wrap.affwp-send-notifications-wrap label {
    margin: 0;
    font-weight: 500;
    color: #333;
}

/* ====== BUTTON ====== */
.affwp-save-profile-wrap input.button {
    padding: 12px 28px;
    background: #2EA3F2;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.affwp-save-profile-wrap input.button:hover {
    background: #1d8ed8;
}

.affwp-save-profile-wrap input.button:active {
    transform: scale(0.97);
}

/* ====== RESPONSYWNOŚĆ ====== */
@media (max-width: 768px) {
    .affwp-wrap.affwp-send-notifications-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .affwp-save-profile-wrap input.button {
        width: 100%;
    }
}


/* ====== WRAPPER FORMULARZA ====== */
.affwp-form.affwp-login-form {
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 30px 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

/* ====== LEGEND ====== */
.affwp-form.affwp-login-form legend {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* ====== INPUTY ====== */
.affwp-form.affwp-login-form input[type="text"],
.affwp-form.affwp-login-form input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    background: #f9f9f9;
    margin-top: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.affwp-form.affwp-login-form input[type="text"]:focus,
.affwp-form.affwp-login-form input[type="password"]:focus {
    outline: none;
    border-color: #2EA3F2;
    box-shadow: 0 0 0 2px rgba(46,163,242,0.15);
}

/* ====== LABELS ====== */
.affwp-form.affwp-login-form label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

/* ====== CHECKBOX ====== */
.affwp-form.affwp-login-form .affwp-user-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.affwp-form.affwp-login-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2EA3F2;
    cursor: pointer;
}

/* ====== BUTTON ====== */
.affwp-form.affwp-login-form input[type="submit"].button {
    width: 100%;
    padding: 12px 0;
    margin-top: 20px;
    border-radius: 6px;
    background: #2EA3F2;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.affwp-form.affwp-login-form input[type="submit"].button:hover {
    background: #1d8ed8;
}

.affwp-form.affwp-login-form input[type="submit"].button:active {
    transform: scale(0.97);
}

/* ====== LINK DO RESETU HASŁA ====== */
.affwp-form.affwp-login-form .affwp-lost-password {
    margin-top: 12px;
    text-align: right;
}

.affwp-form.affwp-login-form .affwp-lost-password a {
    font-size: 13px;
    color: #2EA3F2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.affwp-form.affwp-login-form .affwp-lost-password a:hover {
    color: #1d8ed8;
    text-decoration: underline;
}

/* ====== RESPONSYWNOŚĆ ====== */
@media (max-width: 480px) {
    .affwp-form.affwp-login-form {
        padding: 24px 16px;
    }

    .affwp-form.affwp-login-form legend {
        font-size: 18px;
        text-align: center;
    }
}









/* WOOCOMMERCE ACCOUNT */


/* ====== KONTEKST STRONY ====== */
body.woocommerce-account {
    font-family: "Inter", sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ====== WRAPPER MENU ====== */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

/* LISTA MENU (pionowa) */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

/* POJEDYNCZA POZYCJA MENU */
.woocommerce-MyAccount-navigation li {
    margin-bottom: 8px;
}

/* LINKI MENU */
.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* AKTYWNA POZYCJA */
.woocommerce-MyAccount-navigation li.is-active a {
    background: #2EA3F2;
    color: #fff;
    border-color: #2EA3F2;
}

/* HOVER */
.woocommerce-MyAccount-navigation a:hover {
    background: #f5f7fa;
    color: #000;
}

/* OSTATNI LINK WYLOGUJ SIĘ */
.woocommerce-MyAccount-navigation li:last-child a {
    color: #a00;
}

.woocommerce-MyAccount-navigation li:last-child a:hover {
    background: #fff0f0;
    color: #d00;
}

/* ====== TREŚĆ KONTA ====== */
.woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

/* POWITANIE */
.woocommerce-MyAccount-content p {
    font-size: 14px;
    margin-bottom: 16px;
}

.woocommerce-MyAccount-content p strong {
    color: #1a1a1a;
}

/* LINKI W TREŚCI */
.woocommerce-MyAccount-content a {
    color: #2EA3F2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-MyAccount-content a:hover {
    color: #1d8ed8;
    text-decoration: underline;
}

/* ====== RESPONSYWNOŚĆ ====== */
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation {
        padding: 16px;
    }

    .woocommerce-MyAccount-content {
        padding: 16px;
    }

    /* Pionowy układ pozostaje, ale linki dopasowane szerokością */
    .woocommerce-MyAccount-navigation a {
        width: 100%;
    }
}




/* ====== KOLUMNY ADRESÓW ====== */
.woocommerce-Addresses {
    display: block !important; /* usuwa flex */
    float: none !important;
    width: 100%!important;
}

/* Pojedyncza kolumna – pełna szerokość */
.woocommerce-Address {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 18px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    display: block !important; /* usuwa flex */
    float: none !important;
    width: 100%!important;
}

/* Nagłówek adresu */
.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.woocommerce-Address-title h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Link „Dodaj/Edytuj adres” */
.woocommerce-Address-title a.edit {
    font-size: 13px;
    font-weight: 500;
    color: #2EA3F2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-Address-title a.edit:hover {
    color: #1d8ed8;
    text-decoration: underline;
}

/* Treść adresu */
.woocommerce-Address address {
    font-style: normal;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ====== RESPONSYWNOŚĆ ====== */
@media (max-width: 768px) {
    .woocommerce-Address {
        width: 100%;
    }
}





/* Kontener pól */
.woocommerce-address-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Pojedyncze pole */
.woocommerce-address-fields p {
    flex: 1 1 100%;
    margin-bottom: 18px;
}

/* Pola półszerokie (np. imię/nazwisko) */
.form-row-first,
.form-row-last {
    flex: 1 1 calc(50% - 10px);
}

/* Etykiety */
.woocommerce .woocommerce-MyAccount-content label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

/* Inputy i selecty */
.woocommerce .woocommerce-MyAccount-content input.input-text,
.woocommerce .woocommerce-MyAccount-content select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #f9f9f9;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce .woocommerce-MyAccount-content input.input-text:focus,
.woocommerce .woocommerce-MyAccount-content select:focus {
    border-color: #2EA3F2;
    box-shadow: 0 0 0 2px rgba(46,163,242,0.2);
    outline: none;
}

/* Placeholder */
.woocommerce .woocommerce-MyAccount-content input::placeholder,
.woocommerce .woocommerce-MyAccount-content select::placeholder {
    color: #999;
}

/* Przycisk Zapisz */
.woocommerce .woocommerce-MyAccount-content button.button,
.woocommerce .woocommerce-MyAccount-content input.button {
    background: #2EA3F2;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.woocommerce .woocommerce-MyAccount-content button.button:hover,
.woocommerce .woocommerce-MyAccount-content input.button:hover {
    background: #1d8ed8;
}

/* Opcjonalne pola / wymagane */
.woocommerce .woocommerce-MyAccount-content .optional {
    font-weight: 400;
    color: #999;
}

.woocommerce .woocommerce-MyAccount-content .required {
    color: #d9534f;
}

/* ====== RESPONSYWNOŚĆ ====== */
@media (max-width: 768px) {
    .form-row-first,
    .form-row-last {
        flex: 1 1 100%;
    }
}




/* Kontener całego logowania/rejestracji */
.woocommerce #customer_login #customer_login {
    display: flex;
    flex-direction: column; /* wszystko jeden pod drugim */
    gap: 40px; /* odstęp między formularzami */
    max-width: 500px; /* szerokość formularza na desktop */
    margin: 0 auto; /* wyśrodkowanie */
}

/* Usuń dwie kolumny */
.woocommerce #customer_login .u-column1,
.woocommerce #customer_login .u-column2 {
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.woocommerce #customer_login .u-column1{
    border-bottom: 1px solid #e6e6e6;
  padding-bottom: 30px;
  margin-bottom: 60px;
}

/* Nagłówki formularzy */
.woocommerce #customer_login #customer_login h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    border-bottom: 2px solid #2EA3F2;
    padding-bottom: 6px;
}

/* Formularze */
.woocommerce #customer_login form {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

/* Inputy i selecty */
.woocommerce #customer_login input.input-text,
.woocommerce #customer_login select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #f9f9f9;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce #customer_login input.input-text:focus,
.woocommerce #customer_login select:focus {
    border-color: #2EA3F2;
    box-shadow: 0 0 0 2px rgba(46,163,242,0.2);
    outline: none;
}

/* Etykiety */
.woocommerce #customer_login label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

/* Checkbox „Zapamiętaj mnie” */
.woocommerce #customer_login-form__label-for-checkbox {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.woocommerce #customer_login-form__label-for-checkbox input {
    margin-right: 8px;
}

/* Przycisk */
.woocommerce #customer_login button.button,
.woocommerce #customer_login input.button {
    background: #2EA3F2;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
    display: inline-block;
}

.woocommerce #customer_login button.button:hover,
.woocommerce #customer_login input.button:hover {
    background: #1d8ed8;
}

/* Lost password / linki */
.woocommerce #customer_login .woocommerce-LostPassword a,
.woocommerce #customer_login .woocommerce-privacy-policy-link {
    color: #2EA3F2;
    text-decoration: underline;
    font-size: 13px;
}

.woocommerce #customer_login .woocommerce-LostPassword a:hover,
.woocommerce #customer_login .woocommerce-privacy-policy-link:hover {
    color: #1d8ed8;
}

.woocommerce #customer_login form .show-password-input, .woocommerce-page form .show-password-input{
    top:  35%;
}

/* Responsywność */
@media (max-width: 768px) {
    .woocommerce #customer_login #customer_login {
        gap: 30px;
        padding: 0 10px;
    }
}












.read-more {
    /* wyśrodkowanie summary wewnątrz details */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.read-more summary {
    cursor: pointer;
    font-weight: bold;
    padding: 0.5em 1em;
    background: #1e73be;   /* kolor przycisku */
    color: #fff;
    border-radius: 4px;
    display: inline-flex;   /* pozwala na ikonę obok tekstu */
    align-items: center;
    gap: 0.5em;            /* odstęp między tekstem a strzałką */
    list-style: none;      /* usuwa domyślną strzałkę summary w niektórych przeglądarkach */
    min-width: 260px;
    display: flex;
    justify-content: center;
}

/* strzałka domyślnie w dół */
.read-more summary::after {
    content: "▼";
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

/* jeśli details jest otwarte, obracamy strzałkę w górę */
.read-more[open] summary::after {
    content: "▲";
}


@media (max-width: 768px) {
    .read-more summary {
        width: 100%;
    }
}


.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
}

