/*
 * White Rabbit — Composite Product Styles
 * Child theme for shop.white-rabbit.com.au (parent: Divi 4.27.4)
 * WooCommerce Composite Products 10.6.0
 * Palette: --smillie-copper:#b87333 --smillie-charcoal:#1a1512 --smillie-cream:#f4efe6
 */

/* ==================================================================
   COMPOSITE PRODUCT — COMPONENT CARDS
   ================================================================== */

/* Wrap the entire composite form */
.composite_form {
    margin-top: 0;
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Each component step */
.composite_form .component {
    background: #fff;
    border: 1px solid #e8e3db;
    border-radius: 4px;
    padding: 28px 32px;
    margin-bottom: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.composite_form .component:hover {
    border-color: #b87333;
    box-shadow: 0 2px 12px rgba(184,115,51,0.08);
}
.composite_form .component.active {
    border-color: #b87333;
    border-left: 3px solid #b87333;
    box-shadow: 0 2px 16px rgba(184,115,51,0.10);
}

/* Component title */
.composite_form .component .step_title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1512;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}
.composite_form .component .step_title:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #b87333;
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Component description */
.composite_form .component .step_description {
    font-size: 14px;
    line-height: 1.65;
    color: #6b6056;
    margin: 0 0 16px 0;
}

/* Selection dropdowns / thumbnails area */
.composite_form .component .component_options {
    margin-top: 14px;
}
.composite_form .component .component_options select {
    width: 100%;
    max-width: 440px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Archivo', sans-serif;
    border: 1px solid #d5cec5;
    border-radius: 3px;
    background: #fafaf8;
    color: #1a1512;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b87333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.2s;
}
.composite_form .component .component_options select:focus {
    outline: none;
    border-color: #b87333;
    box-shadow: 0 0 0 2px rgba(184,115,51,0.15);
}

/* Component option thumbnails */
.composite_form .component .component_option_thumbnail {
    border-radius: 3px;
    overflow: hidden;
}

/* Component quantity */
.composite_form .component .component_quantity {
    margin-top: 12px;
}
.composite_form .component .component_quantity input.qty {
    width: 72px;
    padding: 10px 8px;
    border: 1px solid #d5cec5;
    border-radius: 3px;
    font-size: 14px;
    text-align: center;
}

/* Component option description (when an option is selected) */
.composite_form .component .component_option_content {
    font-size: 13px;
    color: #6b6056;
    margin-top: 8px;
    line-height: 1.5;
}

/* ==================================================================
   COMPOSITE SUMMARY / TOTAL SECTION
   ================================================================== */

/* Summary box */
.composite_form .composite_wrap {
    margin-top: 24px;
}

.composite_form .composite_summary {
    background: #fafaf8;
    border: 1px solid #e8e3db;
    border-radius: 6px;
    padding: 28px 32px;
    margin-top: 28px;
}

.composite_form .composite_summary .summary_title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1512;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e3db;
}

/* Summary rows */
.composite_form .composite_summary .summary_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #4a3f33;
    border-bottom: 1px dotted #e8e3db;
}
.composite_form .composite_summary .summary_row:last-of-type {
    border-bottom: none;
}

/* Total price */
.composite_form .composite_summary .composite_total {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1512;
    text-align: right;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 2px solid #b87333;
}

/* ==================================================================
   ADD TO CART BUTTON
   ================================================================== */

.composite_form .composite_button {
    margin-top: 20px;
    text-align: right;
}
.composite_form .composite_button button.single_add_to_cart_button {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 16px 44px;
    background: #b87333 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.composite_form .composite_button button.single_add_to_cart_button:hover {
    background: #a0642d !important;
    transform: translateY(-1px);
}
.composite_form .composite_button button.single_add_to_cart_button:active {
    transform: translateY(0);
}
.composite_form .composite_button button.single_add_to_cart_button:disabled {
    background: #c9bfb2 !important;
    cursor: not-allowed;
    transform: none;
}

/* ==================================================================
   PAGINATION (if using paginated/stepped layout)
   ================================================================== */

.composite_form .composite_pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid #e8e3db;
}
.composite_form .composite_pagination .page_button {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #b87333;
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid #b87333;
    border-radius: 3px;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}
.composite_form .composite_pagination .page_button:hover {
    background: #b87333;
    color: #fff;
}
.composite_form .composite_pagination .page_button.inactive {
    color: #c9bfb2;
    border-color: #e8e3db;
    cursor: default;
}
.composite_form .composite_pagination .page_button.inactive:hover {
    background: transparent;
    color: #c9bfb2;
}

/* ==================================================================
   COMPONENT STATUS MESSAGES
   ================================================================== */

.composite_form .component .messages {
    margin-top: 10px;
}
.composite_form .component .messages .woocommerce-info,
.composite_form .component .messages .woocommerce-error {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 3px;
    margin: 8px 0;
}
.composite_form .component .messages .woocommerce-info {
    background: #faf8f3;
    border: 1px solid #e8e3db;
    color: #6b6056;
}
.composite_form .component .messages .woocommerce-error {
    background: #fdf2f2;
    border: 1px solid #f1d0d0;
    color: #8b3a3a;
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */

@media (max-width: 768px) {
    .composite_form .component {
        padding: 20px 18px;
        margin-bottom: 14px;
    }
    .composite_form .component .step_title {
        font-size: 18px;
    }
    .composite_form .component .component_options select {
        max-width: 100%;
    }
    .composite_form .composite_summary {
        padding: 20px 18px;
    }
    .composite_form .composite_button button.single_add_to_cart_button {
        width: 100%;
        text-align: center;
    }
}

/* ==================================================================
   INACTIVE / DISABLED STATE (before all mandatory components selected)
   ================================================================== */

.composite_form .composite_button {
    position: relative;
}
.composite_form .composite_button button.single_add_to_cart_button:disabled:after {
    content: '';
}
