/*
Theme Name: CookieBaner
Theme URI: https://cookiebaner.pl
Author: cookiebaner.pl
Author URI: https://cookiebaner.pl
Description: Dedykowany motyw WordPress dla wtyczki CookieBaner — cookie consent plugin z obsługą Google Consent Mode V2 i RODO. Motyw oparty na Tailwind CSS, w pełni responsywny, zoptymalizowany pod WooCommerce i gotowy do tłumaczeń (i18n).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cookiebaner
Tags: one-column, custom-logo, translation-ready, e-commerce

CookieBaner WordPress Theme
Copyright (C) 2026 cookiebaner.pl
*/

/* ==========================================================================
   Base reset — Tailwind CDN handles most utility classes.
   This file provides WP-required metadata and minimal base styles.
   ========================================================================== */

/* WordPress alignment classes */
.alignwide  { max-width: 1280px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100vw;  margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
.aligncenter{ display: block; margin-left: auto; margin-right: auto; }
.alignleft  { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem;  margin-bottom: 1rem; }

/* WordPress caption */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: #64748b; margin-top: 0.5rem; }

/* Screen reader text — WP accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.max-w-4xl {
    max-width: 1440px;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt{
    background-color: #1863dc;
}

.wps_recurring_bifurcation_wrapper {
    display:none;
}
/* ==========================================================================
   WOOCOMMERCE CHECKOUT BLOCKS OVERRIDES
   Nadpisywanie domyślnego wyglądu kasy (Gutenberg)
   ========================================================================== */

/* 1. Całkowite ukrycie przycisku/linku "Wróć do koszyka" */
.wc-block-components-checkout-return-to-cart-button {
    display: none !important;
}

/* 2. Zmiana kontenera akcji na kolumnę (aby przycisk mógł zająć 100%) */
.wc-block-checkout__actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
}

/* 3. Ekstremalnie widoczny przycisk "Kupuję i płacę" (100% szerokości) */
.wc-block-components-checkout-place-order-button {
    width: 100% !important;
    margin-top: 1rem !important;
    padding: 1.25rem 2rem !important; /* Duży padding */
    font-size: 1.125rem !important; /* Większy tekst */
    font-weight: 700 !important; /* Bold */
    font-family: "Space Grotesk", sans-serif !important;
    background-color: #1863dc !important; /* Nasz blue-main */
    color: #ffffff !important;
    border-radius: 1rem !important; /* Zaokrąglenie xl */
    border: none !important;
    box-shadow: 0 10px 15px -3px rgba(24, 99, 220, 0.3) !important; /* Cień pod kolor */
    transition: all 0.3s ease !important;
    text-align: center !important;
    justify-content: center !important;
}

/* 4. Efekt najechania (Hover) dla przycisku */
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-checkout-place-order-button:focus {
    background-color: #134fb0 !important; /* Nasz blue-dark */
    box-shadow: 0 20px 25px -5px rgba(24, 99, 220, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* 5. Drobna poprawka aktywnych inputów w kasie */
.wc-block-components-text-input.is-active {
    border-color: #1863dc !important;
    box-shadow: 0 0 0 1px #1863dc !important;
}
.font-light, p , li, ul, ol, body {
    font-weight: 400;
}