// Copyright (c) 2014, 2025, Oracle and/or its affiliates.  Licensed under The Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl/

@import "../../utilities/oj.utilities";
@import "../../common/helpers/oj.common.helpers";

// ----- start dependencies ---------

// set up include variables before importing dependencies
@if $includeMessagesClasses != false {
  $includeIconClasses: true !global;
  $includePopupClasses: true !global;
  $includeMessageClasses: true !global;
  $includeAnimationClasses: true !global;
}

// import dependencies
@import "oj.alta.ios.icons";
@import "oj.alta.ios.popup";
@import "oj.alta.ios.message";

// ----- end dependencies ---------

// import classes defined in the common directory
@import "../../common/widgets/oj.common.messages";

@if $includeMessagesClasses != false {
  @include module-include-once("alta.ios.messages") {
    
    //INDIVIDUAL MESSAGE OVERRIDES
    //////////////////////////////
    
    .oj-messages-inline .oj-message-header {
      padding: 12px 10px 3px 10px;
    }
    
    .oj-messages-inline .oj-message-body {
      padding: 0px 10px 12px 10px;
    }
    
    .oj-messages-general .oj-message-header,
    .oj-messages-notification .oj-message-header {
      @include oj-ltr() {
        padding: 13px 14px 12px 8px;
      }
      @include oj-rtl() {
        padding: 13px 8px 12px 14px;
      }
    }
    
    .oj-messages-general .oj-message-body,
    .oj-messages-notification .oj-message-body {
      padding: 10px 14px 17px 13px;
    }
    
    // Medium-up screen responsive overrides
    @if $responsiveQueryMediumUp and $responsiveQueryMediumUp != none {
      @media  #{$responsiveQueryMediumUp} {
        
        //INDIVIDUAL MESSAGE OVERRIDES
        //////////////////////////////
        
        .oj-messages-inline .oj-message-body .oj-message-summary {
          padding-bottom: 4px;
        }
      }
    }
  }
}
