/* Styles for Woo Shipping Box */

.wsm_shipping_methods_inner {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    max-width: 400px;
    margin: 1rem auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    direction: rtl;
}

.wsm_shipping_method_items {
    width: 100%;
}

.wsm-shipping-method-item-header {
    font-weight: bold;
    display: block;
    text-align: center;
    margin-bottom: 0.75rem;
}

.wsm_shipping_method_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-top: 1px solid #e5e5e5;
    cursor: pointer;
}

.wsm_shipping_method_item:first-of-type {
    border-top: none;
}

.wsm_shipping_method_item:hover {
    background-color: #f0f0f5;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 40px;
    justify-content: flex-start;
}

.icon-wrapper svg {
    width: 16px;
    height: 16px;
}

.item-name {
    flex: 1;
    text-align: right;
}

.item-name .title {
    font-weight: bold;
    margin-left: 0.25rem;
    white-space: nowrap;
}

.item-name .desc {
    color: #333;
    font-size: 0.9rem;
}

/* Modal styles */
.wsm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.wsm-modal.show {
    display: flex;
}

.wsm-modal-content {
    background: linear-gradient(#fdf3e9 0%, #ffffff 20%);
    border-radius: 10px;
    width: 90%;
    max-width: 360px;
    padding: 1.25rem 1rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    direction: rtl;
}

.wsm-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.25rem;
    color: #888;
    cursor: pointer;
    font-family: sans-serif;
}

.wsm-modal-hero img {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.5rem;
}

.wsm-modal-heading {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.wsm-modal-text {
    font-size: 0.875rem;
    color: #333;
    text-align: justify;
    margin-bottom: 1rem;
    direction: rtl;
}

.wsm-modal-text a {
    color: #0071c9;
    font-weight: bold;
    text-decoration: none;
}

.wsm-modal-actions {
    margin-top: 0.5rem;
}

.wsm-btn-primary {
    display: block;
    width: 100%;
    border: none;
    background-color: #0071c9;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
}

.wsm-btn-primary:hover {
    background-color: #055fa6;
}