/* 
Theme Name:		 astra-child
Theme URI:		 http://childtheme-generator.com/
Description:	 astra-child is a child theme of Astrid
Author:			 Teresa
Author URI:		 https://integritybms.com.au
Template:		 astra
Version:		 1.0.0
Text Domain:	 astra-child
*/


/*
    Add your custom styles here
*/

/* Shop product cards: restyle Astra "Out of stock" badge 
    as per Alfred way back when.... ?
*/
.ast-shop-product-out-of-stock {
    background: rgba(255,255,255,0.92);
    color: #6b46c1;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    line-height: 1.2;
    padding: 4px 7px;
    border-radius: 20px;
    letter-spacing: 0;
}


/* ==========================================
   NAMETAGS - COMPACT PRODUCT OPTIONS
   ========================================== 
    Added by Alfred and Teresa 22 September 2026 to make radio buttons in Barn2 Product Options fit horizontally rather than vertically.
*/

/* Radio-button choices horizontally */
.wpo-field.nametag-radio-inline ul.wpo-choice-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px 20px;
}

.wpo-field.nametag-radio-inline ul.wpo-choice-list > li.wpo-choice-item {
    width: auto !important;
    margin: 0 !important;
}


/* Checkbox choices horizontally/compactly */
/* Override Barn2's one-column checkbox grid */
.wpo-field.nametag-checkbox-inline ul.wpo-choice-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 8px 20px;
}

/* Let each checkbox choice use the width its text requires */
.wpo-field.nametag-checkbox-inline ul.wpo-choice-list > li.wpo-choice-item {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Keep checkbox and its wording together */
.wpo-field.nametag-checkbox-inline label.wpo-checkbox {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    gap: 8px;
}