/*---------------------------------------------------------------------------------

 Theme Name:   	Divi Child
 Theme URI:  	    
 Description:  	Vrubel Petr's child theme for Divi
 Author:       	Petr Vrubel
 Author URI:   	https://vrubel.online/
 Template:     	Divi
 Version:      	1.1.0
 License:      	GNU General Public License v2 or later
 License URI:  	http://www.gnu.org/licenses/gpl-2.0.html

------------------------------ ADDITIONAL CSS HERE ------------------------------*/

.vp-vertical-align {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

:focus {
  outline: 2px solid var(--focus-color, #8FA4A7); /* Dusty blue accent */
  outline-offset: 3px;
  border-radius: 4px;
}

:focus-visible {
  outline: 3px solid var(--focus-color, #8FA4A7);
  outline-offset: 3px;
}

/* Remove menu animation */
body .et_pb_module {
	animation: none!important;
}

/* 
 *  WooCommerce Custom CSS
 */
.woocommerce-page ul.products:before {
    display: none!important;;
}

.woocommerce-page ul.products {
    display:grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
}

.woocommerce-page .woocommerce ul.products li.product {
    width: 100%!important;
}

@media only screen and (max-width: 728px){

    .woocommerce-page ul.products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

} 

@media only screen and (min-width: 729px) and (max-width: 980px) {

    .woocommerce-page ul.products {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

}

body.woocommerce-cart .return-to-shop {
    display:none;
}

.woocommerce-message {
    margin-bottom: 0;
    display:flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.woocommerce-message:after {
    display: none;
}

body.woocommerce-page .woocommerce-message {
	background: var(--gcid-60oz7zgt3z)!important;
}

body.woocommerce-page .woocommerce-message a.button {
	background-color: var(--gcid-qa03jn9xhb) !important;
	font-family: var(--et_global_heading_font) !important;
	font-weight: var(--et_global_heading_font_weight) !important;
	text-transform: uppercase !important;
	color: var(--gcid-vlxkqq7zs5) !important;
	border-top-left-radius: 0px !important;
	border-top-right-radius: 0px !important;
	border-bottom-left-radius: 0px !important;
	border-bottom-right-radius: 0px !important;
	border-width: 1px !important;
	border-color: var(--gcid-60oz7zgt3z) !important;
	border-style: solid !important;
	box-shadow: 0px 0px 0px 0.2rem var(--gcid-qa03jn9xhb) !important;
	padding: 0.3rem 2rem!important;
}

body.woocommerce-page .woocommerce-message a.button:hover {
	background-color: var(--gcid-5c8y4luxg8) !important;
	padding: 0.3rem 2rem!important;
}

body.woocommerce-page .woocommerce-message a.button::after {
	display: none!important;
}

body.woocommerce .et_pb_wc_checkout_payment_info_0_tb_body.et_pb_wc_checkout_payment_info {
  background-color: #ffffff;
}


/* ============================================
   CONTACT FORM 7 - NADEZHDA THEME STYLES
   ============================================ */

/* Form Wrapper */
.cf7-form-wrapper {
    max-width: 100%;
}

/* Row Styling */
.cf7-row {
    margin-bottom: 16px;
}

.cf7-row:last-child {
    margin-bottom: 0;
}

/* Two Column Layout */
.cf7-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .cf7-two-col {
        grid-template-columns: 1fr;
    }
}

/* Field Container */
.cf7-field {
    display: flex;
    flex-direction: column;
}

/* Labels */
.cf7-form-wrapper label {
    display: block;
    color: #4d4b4a;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* All Input Fields */
.cf7-form-wrapper input[type="text"],
.cf7-form-wrapper input[type="email"],
.cf7-form-wrapper input[type="tel"],
.cf7-form-wrapper input[type="date"],
.cf7-form-wrapper input[type="url"],
.cf7-form-wrapper input[type="number"],
.cf7-form-wrapper select,
.cf7-form-wrapper textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #4d4b4a;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Focus State */
.cf7-form-wrapper input[type="text"]:focus,
.cf7-form-wrapper input[type="email"]:focus,
.cf7-form-wrapper input[type="tel"]:focus,
.cf7-form-wrapper input[type="date"]:focus,
.cf7-form-wrapper input[type="url"]:focus,
.cf7-form-wrapper input[type="number"]:focus,
.cf7-form-wrapper select:focus,
.cf7-form-wrapper textarea:focus {
    outline: none;
    border-color: #cfa6a3;
    box-shadow: 0 0 0 2px rgba(207, 166, 163, 0.1);
}

/* Placeholder */
.cf7-form-wrapper input::placeholder,
.cf7-form-wrapper textarea::placeholder {
    color: #9ca3af;
    font-style: normal;
}

/* Select Dropdown */
.cf7-form-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236d6c6b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
    cursor: pointer;
}

/* Textarea */
.cf7-form-wrapper textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Submit Button */
.cf7-form-wrapper input[type="submit"],
.cf7-form-wrapper .wpcf7-submit {
    width: 100%;
    padding: 16px 32px;
    background-color: #4d4b4a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Open Sans', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cf7-form-wrapper input[type="submit"]:hover,
.cf7-form-wrapper .wpcf7-submit:hover {
    background-color: #333333;
}

/* Validation Error Messages */
.cf7-form-wrapper .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Invalid Field Border */
.cf7-form-wrapper .wpcf7-not-valid {
    border-color: #dc2626 !important;
}

/* Response Messages */
.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 16px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-family: 'Open Sans', Arial, sans-serif !important;
}

/* Success Message */
.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
}

/* Error Message */
.wpcf7-validation-errors,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    color: #991b1b !important;
}

/* Spam Block Message */
.wpcf7-spam-blocked,
.wpcf7 form.spam .wpcf7-response-output {
    border-color: #f59e0b !important;
    background-color: #fffbeb !important;
    color: #92400e !important;
}

/* Loading Spinner */
.wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

/* Required Asterisk (if using in labels) */
.cf7-required {
    color: #cfa6a3;
}

/* Date Input Fix for iOS/Safari */
.cf7-form-wrapper input[type="date"] {
    min-height: 46px;
}

/* Deal with annoying br element inserts in the form */ 
.cf7-form-wrapper br {
  display: none;
}

/* ============================================
   FORM CONTAINER BACKGROUND VARIANT
   Use this class on parent div for grey background
   ============================================ */

.cf7-container-grey {
    background-color: #ebeaea;
    padding: 32px;
    border-radius: 4px;
}

.cf7-container-white {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 4px;
}

/* Inputs on grey background */
.cf7-container-grey .cf7-form-wrapper input[type="text"],
.cf7-container-grey .cf7-form-wrapper input[type="email"],
.cf7-container-grey .cf7-form-wrapper input[type="tel"],
.cf7-container-grey .cf7-form-wrapper input[type="date"],
.cf7-container-grey .cf7-form-wrapper select,
.cf7-container-grey .cf7-form-wrapper textarea {
    background-color: #ffffff;
}

body .wc-recipient-fields {
    margin: 1.5em 0;
    padding: 1.5em;
    background-color: #f9f7f5;
    border-radius: 8px;
    font-family: inherit;
}

body .wc-recipient-fields__title {
    margin: 0 0 1em 0;
    padding: 0;
    font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    font-size: 1.4em;
    font-weight: 500;
    font-style: italic;
    color: #2c2c2c;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Radio Options
   ========================================================================== */

body .wc-recipient-fields__options {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

body .wc-recipient-fields__option {
    margin: 0;
    padding: 0;
}

body .wc-recipient-fields__option label {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.875em 1em;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

body .wc-recipient-fields__option label:hover {
    border-color: #b8d4d2;
    background-color: #ffffff;
}

body .wc-recipient-fields__option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cccccc;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

body .wc-recipient-fields__option input[type="radio"]:checked {
    border-color: #9bc5c2;
    background-color: #ffffff;
}

body .wc-recipient-fields__option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #9bc5c2;
    border-radius: 50%;
}

body .wc-recipient-fields__option input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 212, 210, 0.3);
}

body .wc-recipient-fields__option-label {
    font-size: 0.95em;
    color: #2c2c2c;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Highlight selected option */
body .wc-recipient-fields__option input[type="radio"]:checked + .wc-recipient-fields__option-label {
    color: #2c2c2c;
    font-weight: 500;
}

/**
 * Nadezhda - WC Recipient Fields Custom Styles
 *
 * Custom styling to match the elegant bridal/beauty aesthetic.
 * Add this to your theme's Additional CSS or enqueue separately.
 *
 * Color palette extracted from homepage:
 * - Accent (teal/sage): #b8d4d2
 * - Accent dark: #9bc5c2
 * - Text dark: #2c2c2c
 * - Text muted: #666666
 * - Background light: #f9f7f5
 * - White: #ffffff
 *
 * Selector prefix for Divi compatibility:
 * body.woocommerce div#et-main-area div#main-content
 */

/* ==========================================================================
   Container
   ========================================================================== */

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields {
    margin: 1.5em 0;
    padding: 1.5em;
    background-color: #f9f7f5;
    border-radius: 8px;
    font-family: inherit;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__title {
    margin: 0 0 1em 0;
    padding: 0;
    font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    font-size: 1.4em;
    font-weight: 500;
    font-style: italic;
    color: #2c2c2c;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Radio Options
   ========================================================================== */

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__options {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__option {
    margin: 0;
    padding: 0;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__option label {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.875em 1em;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__option label:hover {
    border-color: #b8d4d2;
    background-color: #ffffff;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cccccc;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__option input[type="radio"]:checked {
    border-color: #9bc5c2;
    background-color: #ffffff;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #9bc5c2;
    border-radius: 50%;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__option input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 212, 210, 0.3);
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__option-label {
    font-size: 0.95em;
    color: #2c2c2c;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Highlight selected option */
body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__option input[type="radio"]:checked + .wc-recipient-fields__option-label {
    color: #2c2c2c;
    font-weight: 500;
}

/* ==========================================================================
   Details Section (Name & Email Fields)
   ========================================================================== */

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__details {
    display: none;
    margin: 1.25em 0 0 0;
    padding: 1.25em;
    background-color: #ffffff;
    border: 1px solid #b8d4d2;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__details[aria-hidden="false"] {
    display: block;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__field {
    margin: 0 0 1.25em 0;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__field:last-child {
    margin-bottom: 0;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__label {
    display: block;
    margin: 0 0 0.5em 0;
    font-size: 0.85em;
    font-weight: 500;
    color: #2c2c2c;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__label .required {
    color: #c9a050;
    font-weight: 400;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__input {
    display: block;
    width: 100%;
    padding: 0.875em 1em;
    font-family: inherit;
    font-size: 1em;
    color: #2c2c2c;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__input::placeholder {
    color: #999999;
    font-style: italic;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__input:hover {
    border-color: #cccccc;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__input:focus {
    outline: none;
    border-color: #b8d4d2;
    box-shadow: 0 0 0 3px rgba(184, 212, 210, 0.2);
}

/* ==========================================================================
   Cart & Order Display
   ========================================================================== */

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields-info {
    margin: 0.75em 0;
    padding: 0.75em 1em;
    background-color: #f9f7f5;
    border-left: 3px solid #b8d4d2;
    border-radius: 0 4px 4px 0;
    font-size: 0.9em;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields-info strong {
    color: #2c2c2c;
    font-weight: 600;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields-info__value {
    color: #666666;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields-info__value--myself {
    font-style: italic;
    color: #888888;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields-info__value--someone {
    color: #2c2c2c;
}

/* ==========================================================================
   WooCommerce Cart Item Data Override
   ========================================================================== */

body.woocommerce div#et-main-area div#main-content .cart_item .variation dt,
body.woocommerce div#et-main-area div#main-content .cart_item .variation dd {
    font-size: 0.9em;
}

body.woocommerce div#et-main-area div#main-content .cart_item .variation dd p {
    color: #2c2c2c;
}

/* ==========================================================================
   Forwarding Notice (Thank You Page)
   ========================================================================== */

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields-forwarding-notice {
    margin: 2em 0;
    padding: 1.5em;
    background-color: #f9f7f5;
    border-left: 4px solid #b8d4d2;
    border-radius: 0 8px 8px 0;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields-forwarding-notice h3 {
    margin: 0 0 1em 0;
    padding: 0;
    font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    font-size: 1.3em;
    font-weight: 600;
    font-style: italic;
    color: #2c2c2c;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields-forwarding-notice p {
    margin: 0 0 1em 0;
    color: #2c2c2c;
    line-height: 1.6;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields-forwarding-notice ul {
    margin: 0;
    padding: 0 0 0 1.25em;
    list-style-type: disc;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields-forwarding-notice li {
    margin-bottom: 0.75em;
    color: #2c2c2c;
}

body.woocommerce div#et-main-area div#main-content .wc-recipient-fields-forwarding-notice li strong {
    color: #2c2c2c;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    body.woocommerce div#et-main-area div#main-content .wc-recipient-fields {
        padding: 1.25em;
    }

    body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__title {
        font-size: 1.25em;
    }

    body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__option label {
        padding: 0.75em;
    }

    body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__details {
        padding: 1em;
    }
}

@media (max-width: 480px) {
    body.woocommerce div#et-main-area div#main-content .wc-recipient-fields {
        padding: 1em;
        margin: 1em 0;
    }

    body.woocommerce div#et-main-area div#main-content .wc-recipient-fields__input {
        padding: 0.75em;
    }
}